--On Thursday, July 21, 2005 11:46 PM +0300 Razvan Cojocaru <[EMAIL PROTECTED]>
wrote:
Hello.
I've been using mon for a while now, to monitor about 30 servers, with
different services.
It worked great, using mon-0.99.2-r1 (gentoo).
Now i moved it to another server, dedicated only to monitoring.
It's using the same version, the same mon/auth.cf files.
After few hours of running, i have more than one mon running.
part of the ps ax |grep mon looks like this
17563 ? S 0:00 /usr/bin/perl /usr/sbin/mon -P /tmp/mon.pid -f
17567 ? S 0:00 /usr/bin/perl /usr/sbin/mon -P /tmp/mon.pid -f
17569 ? Z 0:00 [mon] <defunct>
17570 ? S 9:51 /usr/bin/perl /usr/sbin/mon -P /tmp/mon.pid -f
17550 ? S 0:00 /usr/bin/perl /usr/sbin/mon -P /tmp/mon.pid -f
28725 ? S 2:12 /usr/bin/perl /usr/sbin/mon -P /tmp/mon.pid -f
there are more processes, but i only pasted a few (more <defunct> mon's
too)
anyone have a solution for this? what's the reason for using a pid file
if it spawns more processes?
the pid file contains the pid of the last process, so it's writable, no
problem there.
i have maxprocs = 200 if that helps.
Do those mon processes stick around, or are they just the shortlived
results of a fork to run an alert?
I'm guessing most of them are shortlived, but it looks like you've got two
mon processes that have been around for a while.
What version of mon are you running? There was a bug in one of the pre
versions where the fork to run an alert could end up not aborting when
done. Resulting in two running mon processes. I think thats fixed in the
current CVS version, and didn't exist in 0.99.2.
-David
David Nolan <*> [EMAIL PROTECTED]
curses: May you be forced to grep the termcap of an unclean yacc while
a herd of rogue emacs fsck your troff and vgrind your pathalias!
_______________________________________________
mon mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/mon