just2blue4u
22-05-2006, 16:03
I have configured a UserParameter as follows:
UserParameter=proc.cnt.name ,ps -efa|grep -i $1|grep -v grep|wc -l
when i test this item, i always get back the correct value +1:
[root@oracle-stdby-pbs ~]# zabbix_agentd -t proc.cnt.name[mingetty]
proc.cnt.name[ps -efa|grep -i mingetty|grep -v grep|wc -l] [s|7]
[root@oracle-stdby-pbs ~]# ps -efa|grep -i mingetty|grep -v grep|wc -l
6
Can somebody explain this behaviour to me and/or help me to solve this problem?
UserParameter=proc.cnt.name ,ps -efa|grep -i $1|grep -v grep|wc -l
when i test this item, i always get back the correct value +1:
[root@oracle-stdby-pbs ~]# zabbix_agentd -t proc.cnt.name[mingetty]
proc.cnt.name[ps -efa|grep -i mingetty|grep -v grep|wc -l] [s|7]
[root@oracle-stdby-pbs ~]# ps -efa|grep -i mingetty|grep -v grep|wc -l
6
Can somebody explain this behaviour to me and/or help me to solve this problem?