I have configured a UserParameter as follows:
when i test this item, i always get back the correct value +1:
Can somebody explain this behaviour to me and/or help me to solve this problem?
Code:
UserParameter=proc.cnt.name[*],ps -efa|grep -i $1|grep -v grep|wc -l
Code:
[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|[color=red]7[/color]]
Code:
[root@oracle-stdby-pbs ~]# ps -efa|grep -i mingetty|grep -v grep|wc -l [color=red]6[/color]


)...
Sometimes the solution is nearer than you'd think...
Comment