Ad Widget

Collapse

EnableRemoteCommands Vs AllowKey

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nathanm
    Junior Member
    • Mar 2021
    • 1

    #1

    EnableRemoteCommands Vs AllowKey

    Hi Everyone

    We are using Zabbix 5.0 to monitor a number of Windows servers, and I have been trying to use remote commands to restart Windows services when they stop, however I'm having issues when following the documentation.

    I followed Dmitry Lambert's blog (https://blog.zabbix.com/zabbix-remote-commands/7500/), but when editing the zabbix_agentd.conf file it states that "EnableRemoteCommands" function has been depreciated and advises to use "AllowKey" instead.
    e.g. "Option: EnableRemoteCommands - Deprecated, use AllowKey=system.run[*] or DenyKey=system.run[*] instead"

    If I add AllowKey=system.run[*] to the zabbix_agentd.conf and then restart the Zabbix agent service, it fails to start. I also tested with DenyKey=system.run[*] and it's the same problem - the agent service fails to start.

    Eventually out of frustration I decided to just try "EnableRemoteCommands=1" and it worked! Even though it's clearly stated that this is replaced with AllowKey, I still need to use EnableRemoteCommands in order to enable that functionality.

    I'm happy that it's working, but I'm concerned that I've misconfigured something for this to be the case.

    Have I missed something?

    Thank you
    Nathan
  • jsrozo
    Junior Member
    • May 2023
    • 6

    #2
    Maybe is a space in the command or character invalid.
    So weird. The command is ok. You can copy the command in notepad and reviewed.

    Comment

    • bbrendon
      Senior Member
      • Sep 2005
      • 870

      #3
      You might have an old agent that doesn't support
      Code:
      AllowKey=system.run[*]
      Unofficial Zabbix Expert
      Blog, Corporate Site

      Comment

      Working...