Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.
- For example I have the below line in the zabbix agent config file
- [CODE]UserParameter=om.RAIDStatus,sudo /opt/dell/srvadmin/bin/omreport storage vdisk | grep Status | cut -f2 -d":" | grep Ok | wc -l[/CODE]
- The result returned when you run the command manually is: "1". But in zabbix server I'm always getting back "0" as the value.
- I tested this using the agent and got the correct result which is "1"
- [CODE]
- zabbix_agentd -t om.RAIDStatus
- om.RAIDStatus[sudo /opt/dell/srvadmin/bin/omreport storage vdisk | grep Status | cut -f2 -d":" | grep Ok | wc -l] [t|1]
- [/CODE]
- I turned on the zabbix agent debug on and got the below
- [QUOTE]
- 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]
- [/QUOTE]
- Clearly the result returned is [1] so why is the zabbix agent sending back "0" ?
- I'm having the same issue for all my other UserParameters, some which are suppose to return a string but return blank.
- What I'm I doing wrong?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement