Hi All,
I execute the following command
[root@xxxsvr1 sbin]# ./zabbix_agentd -t system.run["$JAVA_HOME/bin/jps -l | grep xxx | wc -l"]
zabbix_agentd [1801]: Warning: Executing command '/usr/java/bin/jps -l | grep xxx | wc -l'
system.run[/usr/java/bin/jps -l | grep xxx | wc -l] [t| 9]
[root@xxxsvr1 sbin]#
Does that mean the count is 9? SO I have 9 xxx processes running, if I do it in bash I get the same
[root@xxxsvr1 sbin]# $JAVA_HOME/bin/jps -l | grep xxx | wc -l
9
[root@xxxsvr1 sbin]#
The problem I have is that zabbix is triggering even though I've set it to only trigger when the process count is below 5, problem is that it seems that Zabbix is getting the value 0 all the time, see my item and trigger definitions below. From the log I get this
25956:20111208:233206.076 Requested [vfs.fs.size[/,free]]
25956:20111208:233206.076 Sending back [104122097664]
25957:20111208:233206.136 Processing request.
25957:20111208:233206.136 Requested [system.run[$JAVA_HOME/bin/jps -l | grep xxx | wc -l ]]
25957:20111208:233206.137 Executing command '$JAVA_HOME/bin/jps -l | grep xxx | wc -l '
25957:20111208:233206.137 In zbx_popen() command:'$JAVA_HOME/bin/jps -l | grep xxx | wc -l '
10345:20111208:233206.139 zbx_popen() executing script
25957:20111208:233206.139 End of zbx_popen():7
25958:20111208:233206.158 Processing request.
25958:20111208:233206.158 Requested [vfs.fs.size[/tmp,pfree]]
25
Can someone please indicate what I'm doing wrong, PLEASE!!
I execute the following command
[root@xxxsvr1 sbin]# ./zabbix_agentd -t system.run["$JAVA_HOME/bin/jps -l | grep xxx | wc -l"]
zabbix_agentd [1801]: Warning: Executing command '/usr/java/bin/jps -l | grep xxx | wc -l'
system.run[/usr/java/bin/jps -l | grep xxx | wc -l] [t| 9]
[root@xxxsvr1 sbin]#
Does that mean the count is 9? SO I have 9 xxx processes running, if I do it in bash I get the same
[root@xxxsvr1 sbin]# $JAVA_HOME/bin/jps -l | grep xxx | wc -l
9
[root@xxxsvr1 sbin]#
The problem I have is that zabbix is triggering even though I've set it to only trigger when the process count is below 5, problem is that it seems that Zabbix is getting the value 0 all the time, see my item and trigger definitions below. From the log I get this
25956:20111208:233206.076 Requested [vfs.fs.size[/,free]]
25956:20111208:233206.076 Sending back [104122097664]
25957:20111208:233206.136 Processing request.
25957:20111208:233206.136 Requested [system.run[$JAVA_HOME/bin/jps -l | grep xxx | wc -l ]]
25957:20111208:233206.137 Executing command '$JAVA_HOME/bin/jps -l | grep xxx | wc -l '
25957:20111208:233206.137 In zbx_popen() command:'$JAVA_HOME/bin/jps -l | grep xxx | wc -l '
10345:20111208:233206.139 zbx_popen() executing script
25957:20111208:233206.139 End of zbx_popen():7
25958:20111208:233206.158 Processing request.
25958:20111208:233206.158 Requested [vfs.fs.size[/tmp,pfree]]
25
Can someone please indicate what I'm doing wrong, PLEASE!!
Comment