Ad Widget

Collapse

ZBX_ERROR in UsrParameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • StanZoid
    Member
    • Oct 2005
    • 47

    #1

    ZBX_ERROR in UsrParameter

    I have configured a UserParameter entry in zabbix_agentd.conf that calls a script to return a value. The script is php, and runs standalone correctly, returning 0 or 1. However, when configured as a UserParameter, I get a ZBX_ERROR when the test runs with zabbix_agentd -t, and does not return a value when run as a scheuled test.

    The conf file definition is:
    UserParameter=ws.dw,/usr/local/zabbix/bin/datawave_ws_monitor.php|grep [01]

    What causes this error and how can I fix it?

    StanZoid
    Zabbix 1.1.4, client 1.1.2, RedHat version 2.4.21-47.EL
    Last edited by StanZoid; 22-11-2006, 17:07.
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #2
    This is just a guess but I think you might need to replace "[01]" with "$1".

    Comment

    • qix
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2006
      • 423

      #3
      Perhaps the user account that is running the Zabbix agent doesn't have the rights to run php in shell mode?

      It could also be that the php binary is not in the path of the Zabbix user.
      You could try the following:

      Code:
      UserParameter=ws.dw,/path/to/php /usr/local/zabbix/bin/datawave_ws_monitor.php|grep [01]
      With kind regards,

      Raymond

      Comment

      Working...