Nagios spawning rogue nagios processes - UPDATE

misc at viceconsulting.co.nz misc at viceconsulting.co.nz
Tue Sep 13 23:39:30 CEST 2005


I posted a message a few days ago regarding Nagios spawning multiple rogue
nagios processes eventually crashing the Nagios server.

Basically it seems if Nagios can not process performance data fast enough
it will keep spawning more and more nagios processes eventually crashing.

It also seems Nagios can only invoke one perfdata-processing script at a
time, and must wait for the first one to finish before the second one can
start.

I had Nagios invoking this dummy Perl script using the
service_perfdata_command directive:

#perl script
sleep 30;

This causes Nagios to go into a spin invoking more and more Nagios
processes and eventually crashing the server.  Memory and swap get chewed
to 0.

I solved the problem in this case by switching to using file-based
perfdata via the following directives:

service_perfdata_file_processing_command
service_perfdata_file
service_perfdata_file_processing_interval=30

Now the Nagios server is running a lot better (CPU was at 100% all the
time, now its about 20%).

If you are doing perfdata processing and you have more than a couple of
hundred services consider switching to a file-based perfdata.  Nonetheless
I don't believe Nagios should behave as mentioned above irrespective of
how you configure your perfdata processing.

Cheers
Alex


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list