Advertisement
Guest User

zabbix agent issue

a guest
Nov 12th, 2013
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. I'm running Zabbix 2.0.5
  2.  
  3. I'm trying to get some data back from the zabbix agent trying to monitor a dell server using dell open manage.
  4.  
  5. For example I have the below line in the zabbix agent config file
  6.  
  7. [CODE]UserParameter=om.RAIDStatus,sudo /opt/dell/srvadmin/bin/omreport storage vdisk | grep Status | cut -f2 -d":" | grep Ok | wc -l[/CODE]
  8.  
  9. The result returned when you run the command manually is: "1". But in zabbix server I'm always getting back "0" as the value.
  10.  
  11. I tested this using the agent and got the correct result which is "1"
  12. [CODE]
  13. zabbix_agentd -t om.RAIDStatus
  14. om.RAIDStatus[sudo /opt/dell/srvadmin/bin/omreport storage vdisk | grep Status | cut -f2 -d":" | grep Ok | wc -l] [t|1]
  15. [/CODE]
  16.  
  17. I turned on the zabbix agent debug on and got the below
  18. [QUOTE]
  19. Run remote command [sudo /opt/dell/srvadmin/bin/omreport storage vdisk | grep Status | cut -f2 -d":" | grep Ok | wc -l] Result [1] [0]...
  20. Sending back [0]
  21. [/QUOTE]
  22.  
  23. Clearly the result returned is [1] so why is the zabbix agent sending back "0" ?
  24.  
  25. I'm having the same issue for all my other UserParameters, some which are suppose to return a string but return blank.
  26.  
  27. What I'm I doing wrong?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement