Ad Widget

Collapse

system.run does not work in Linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leon.kofman@gmail.com
    Junior Member
    • Sep 2008
    • 10

    #1

    system.run does not work in Linux

    Hi,

    I am having a strange problem with system.run not supported on Zabbix 1.6.4

    I configured it as described in the manual, but I get this error:

    13391:20090424:034031 Item [luna:system.run[/root/scripts/NetApp/imageage-zabbix.sh /nbbasic/nbdiskpool05]] error: Not supported by ZABBIX agent

    I have EnableRemoteCommands=1 in my /etc/zabbix/zabbix_agentd.conf

    I am running SUSE Linux 10
    Linux luna 2.6.16.60-0.37_f594963d-smp #1 SMP Mon Mar 23 13:39:48 UTC 2009 x86_64 x86_64 x86_64 GNU/Linux

    And I get system.run unsupported in zabbix_agentd -p output:
    luna:~/scripts/NetApp # /opt/zabbix/sbin/zabbix_agentd -p
    agent.ping [u|1]
    agent.version [s|1.6.4]
    system.localtime [u|1240589984]
    system.run[echo test] [m|ZBX_NOTSUPPORTED]

    Thanks in advance.

    Leon.
  • kontum5
    Junior Member
    • Jun 2009
    • 1

    #2
    system.run not working in linux

    Leon,

    Did you ever find a solution/answer to this? I'm having the same problems with RHEL4/5. Remote command not running as advertised. Thanks.

    Vince

    Comment

    • anrstone
      Member
      • Oct 2009
      • 61

      #3
      Likewise - what I'm finding though is that the script is in fact being run but reports back that it has failed. For various reasons the script I'm running causes zabbix traps to be sent using the zabbix_sender command and the data comes in OK but the logs have messages similar to the following:

      Code:
      Active parameter [system.run["....."]] is not supported by agent on host [ZABBIX Server DR]
      Any help appreciated

      Comment

      • anrstone
        Member
        • Oct 2009
        • 61

        #4
        Found the solution it seems the option parameter wait / nowait isn't optional so when defining the test you need to specify the command as follows:


        system.run[/root/scripts/NetApp/imageage-zabbix.sh /nbbasic/nbdiskpool05,wait]

        OR

        system.run[/root/scripts/NetApp/imageage-zabbix.sh /nbbasic/nbdiskpool05,nowait]

        also I read quite a bit on the web that suggests that adding spaces to the command may cause problems.... Hope this helps

        Comment

        • leon.kofman@gmail.com
          Junior Member
          • Sep 2008
          • 10

          #5
          Problem Resolved

          Well, I did finally found a solution, thanks to Zabbix support.

          The trick is to use the quotes around the command.

          Comment

          Working...