Hi, Christoph...
Thanks for your reply..... With your observation I will able to make a
workaround and this will help me a lot... but do not solve the problem...
This behavior is weird and I belive that could be related with the package
building process.
I just downloaded and compiled the source code of the 1.4 version in the same
server where my early tests had been made, run the same query in both, compiled
version and package version and got different results as follow:
ps command:
------------------------
fs01:/tmp/zabbix-1.4/src/zabbix_agent# ps aux|grep heartbeat
root 2622 0.6 0.6 12604 12604 ? SLs Oct02 103:28 heartbeat:
master control process
nobody 2658 0.0 0.2 6008 6008 ? SL Oct02 0:22 heartbeat:
FIFO reader
nobody 2659 0.0 0.2 6004 6004 ? SL Oct02 0:02 heartbeat:
write: ucast bond0
nobody 2660 0.0 0.2 6004 6004 ? SL Oct02 1:41 heartbeat:
read: ucast bond0
root 9357 0.0 0.0 3140 756 pts/0 R+ 16:33 0:00 grep heartbeat
package version:
-------------------------
fs01:/tmp/zabbix-1.4/src/zabbix_agent# zabbix_agent -t "proc.num[heartbeat]"
proc.num[heartbeat] [u|0]
compiled version:
--------------------------
fs01:/tmp/zabbix-1.4/src/zabbix_agent# ./zabbix_agent -t "proc.num[heartbeat]"
proc.num[heartbeat] [u|4]
best regards,
Flávio.
----- Mensagem original ----
De: Christoph Haas <[email protected]>
Para: [email protected]
Enviadas: Sábado, 10 de Outubro de 2009 9:31:19
Assunto: Bug#545727: zabbix-agent: key proc.num[] doesn't count some processes
correctly
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi, Flavio...
I have had the same problem here. From my own experience the Zabbix
agent counts processes like this:
If the executed program does not alter it's program name ($0) then
Zabbix looks for the basename of the executable. E.g. if you monitor the
"sshd" then you may see this process:
1640 ? Ss 0:51 /usr/sbin/sshd
Zabbix will see the "sshd" basename part of the /usr/sbin/sshd here. Proof:
$> zabbix_get -ssomesystem -k"proc.num[sshd]"
1
$> zabbix_get -ssomesystem -k"proc.num[/usr/sbin/sshd]"
0
In the other case where the program changes its own program name ($0)
then you will need to check for the altered name. In case of Heartbeat:
2476 ? SL 0:27 heartbeat: FIFO reader
$> zabbix_get -ssomesystem -k"proc.num[heartbeat]"
0
$> zabbix_get -ssomesystem -k"proc.num[heartbeat: FIFO reader]"
1
At least that's the behavior in the current 1.6 package.
Does that help you?
Regards
Christoph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkrQfpcACgkQCV53xXnMZYZeTACff2rcLjG/QY5IR4Y7mLToiXRn
GNcAoMA8VWnLo3pe8huCoPbrCoDnMMJP
=IsIL
-----END PGP SIGNATURE-----
--
To unsubscribe, send mail to [email protected].
____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]