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, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org