PDA

View Full Version : proc.num retun diff value


cool_camel
17-02-2006, 10:57
Hi all,

I have zabbix agent on server running Oracle IAS to check the number of processes on RH3 with ps -ef |wc -l returnning 265 but with
zabbix_get -sxxx.xxx.32.50 -p10050 -k"proc.num"
909

i tried same proc.num on rh4 reurned same value than ps -ef |wc -l ( no problem on RH4 and fedora 3/4).

I am not sure how is proc.num returning the number of processes.

also i tested the followgin on the rh3 returned
proc.num[java]
543

on same machine i tried ps returned the following
ps -ef |grep java |wc -l

29

I not sure if there is bug on the agent the agent version i using is 1.1beta6( same problem i had with 1.1beta5).

Regard.

kempkep
28-03-2006, 05:57
I noted the same 'problem', but have decided the difference is that the zabbix agent counts the number of threads with the required command name.

Try issuing ps -efm | wc -l

The numbers are surprisingly similar :)

Now, what would be real handy would be for proc.num to be able to also search the command parameters.

Alexei
28-03-2006, 09:06
Now, what would be real handy would be for proc.num to be able to also search the command parameters.
It is already supported for Linux, but not documented yet. Fourth parameter to proc.num accepts command line :)