Hi
this discussion is still ongoing, I'm afraid (on AIX 5.3)
Years ago there was a problem with the command-line lenght
of the cmdline part in the /proc filesystem (limit was 80 chars).
Now the new fix is in place, but we don't get any value other than 0
for all existing process we would like to monitor:
The same result (0) is shown, if we do a zabbix_get for proc.num[/usr/sbin/inetd] or the zabbix_agentd itself.
Our old work-around using the user-parameters
work well.
Does somebody else see this behaviour with the 2.4.4 agent (or newer) or is it a bug in just this version ?
I found that the limit of MAXCOMLEN (32 chars.) is mentioned in
ZBX-5243 and the code in 3.0.3 looks like the proposed patch.
Thanks in advance for any answer.
Kind regards
Norbert.
this discussion is still ongoing, I'm afraid (on AIX 5.3)
Years ago there was a problem with the command-line lenght
of the cmdline part in the /proc filesystem (limit was 80 chars).
Now the new fix is in place, but we don't get any value other than 0
for all existing process we would like to monitor:
Code:
$ /usr/sbin/zabbix_agentd -t proc.num[/usr/sbin/inetd] proc.num[/usr/sbin/inetd] [u|0] $ /usr/sbin/zabbix_agentd -t proc.num[,,run] proc.num[,,run] [u|0]
Our old work-around using the user-parameters
Code:
UserParameter=usr.proc.cntuser[*],ps -fu $1 | grep -c "$2" UserParameter=usr.proc.cnt[*],ps -eaf |grep -v grep|grep -c "$1"
Does somebody else see this behaviour with the 2.4.4 agent (or newer) or is it a bug in just this version ?
I found that the limit of MAXCOMLEN (32 chars.) is mentioned in
ZBX-5243 and the code in 3.0.3 looks like the proposed patch.
Thanks in advance for any answer.
Kind regards
Norbert.
Comment