Ad Widget

Collapse

zabbix agent UserParameter not returning data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • orionweb
    Junior Member
    • Feb 2010
    • 17

    #1

    zabbix agent UserParameter not returning data

    I wrote a details post of my issue but the forum wouldn't let me post it saying there were too many links to images! I created a pastebin here http://pastebin.com/t7YZBZXa with the full details. Below is a very cut down version of it.

    I'm running Zabbix 2.0.5 I'm trying to get some data back from the zabbix agent trying to monitor a dell server using dell open manage. But I'm always getting zero as the return value instead of the actual value output of the shell command

    I turned on the zabbix agent debug on and got the below:
    Run remote command [sudo /opt/dell/srvadmin/bin/omreport storage vdisk | grep Status | cut -f2 -d":" | grep Ok | wc -l] Result [1] [0]...
    Sending back [0]
    Clearly the result returned is [1] so why is the zabbix agent sending back "0" ? What I'm I doing wrong?
  • orionweb
    Junior Member
    • Feb 2010
    • 17

    #2
    I worked it out!

    The issue was having sudo in front of the shell command made it return zero instead of the value.

    Basically remove the word sudo from the command so it becomes

    Code:
    UserParameter=om.RAIDStatus,/opt/dell/srvadmin/bin/omreport storage vdisk | grep Status | cut -f2 -d":" | grep Ok | wc -l
    Strangely enough running the command with sudo at the front on the shell return the expected result. But the zabbix agent sees a zero instead

    Comment

    Working...