[Pkg-nagios-devel] Bug#369332: nagios2: should have a plugin
checking for multiple nagios daemons
debian.packages.hhqj at manchmal.in-ulm.de
Sun Dec 10 15:37:25 CET 2006
Marc Haber wrote...
> We should have a plugin that checks for nagios daemon processes and
> returns WARNING or CRITICAL if there are more than one nagios daemon
> with PPID 1.
Your wish is understandable but "ppid = 1" is not sufficient. Run
/usr/lib/nagios/plugins/check_procs -C nagios2 -c 1:1 \
-a '/usr/sbin/nagios2 -d /etc/nagios2/nagios.cfg' -p 1
(-a is required for paranoid people only)
in a constant loop and see how the number is going up and down. As far
as I can tell there is no easy way to distinguish between "forgotten
daemon" and "forked daemon running a test". The master process should
not have children but checking for that requires careful operation,
think of races.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20061210/44ef34c6/attachment.pgp
More information about the Pkg-nagios-devel