Ad Widget

Collapse

Remote command is always returning 0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GraKa
    Junior Member
    • Jul 2016
    • 1

    #1

    Remote command is always returning 0

    Hello,

    I'm currently trying to monitor my ceph infrastructure using Zabbix 3.0 and the following script: https://github.com/thelan/ceph-zabbix/issues

    I have inserted the UserParameters into the agent config file. Moreover, I have linked the templates to my hosts.

    When I query the zabbix agent locally on my host by use of the command "zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -p", all UserParameters are successfully printed and the correct value is display.

    However, on my frontend, all the parameters are 0 and some parameters are also displayed as "Not supported", whilst some of the parameters are also "Enabled". But no matter if enabled or not supported, the value of the parameter is always 0.

    Furthermore, I have found the following in my log file upon setting the debuglevel to 4:

    Code:
      7825:20160727:095234.399 Requested [ceph.clean]
      7825:20160727:095234.399 In zbx_popen() command:' /opt/ceph-status.sh clean'
      7825:20160727:095234.588 Run remote command [ /opt/ceph-status.sh clean] Result [1] [0]...
      7825:20160727:095235.706 Requested [ceph.count]
      7825:20160727:095235.706 In zbx_popen() command:' /opt/ceph-status.sh count'
      7825:20160727:095235.898 Run remote command [ /opt/ceph-status.sh count] Result [1] [0]...
      7825:20160727:095236.921 Requested [ceph.creating]
      7825:20160727:095236.921 In zbx_popen() command:' /opt/ceph-status.sh creating'
      7825:20160727:095237.112 Run remote command [ /opt/ceph-status.sh creating] Result [1] [0]...
    As you can see, it's always 0. I don't know what [1] in this case means.

    I have also set the parameter "EnableRemoteCommands=1" in the zabbix agent config file.

    Thanks so much for your help, I'm a little bit stuck right now, I've read almost all google topics I've found.

    Kind regards,
    GraKa
Working...