<html>
<head>
</head>
<body>
When I am referring to the pipe, I mean the pipe between the forked-off plugins
and the main Nagios daemon. The way that Nagios gets information back from
the plugins is that they all write to one pipe (in this case, the pipe is
an object in the C code, not a pipe file like nagios.cmd).<br>
<br>
You are right that the command_check_interval refers to the command pipe,
nagios.cmd. But the service_reaper_frequency affects the reading of the
communication pipe between the plugins and the daemon.<br>
<br>
Hope this clears things up.<br>
<br>
-Russell<br>
<br>
Marc Powell wrote:<br>
<blockquote type="cite" cite="mid:5DB017510818EC468B05BD7BD9EACF83029F2668@mismail.ena.com">
<meta name="Generator" content="MS Exchange Server version 6.0.6249.1">
<title>Re: [Nagios-users] 1000+ processes then Nagios fails</title>
<div>Are you certain that's what the service_reaper_frequency applies to?
I thought that command_check_interval applied to the external command pipe
and that service_reaper_frequency only applied to local active checks that
do not write to the external command pipe.</div>
<div> </div>
<div>--</div>
<div>Marc</div>
<blockquote dir="Ltr" style="margin-right: 0px; ">
<div><font size="2">-----Original Message----- <br>
<b>From:</b> Russell Scibetti [<a class="moz-txt-link-freetext" href="mailto:russell@quadrix.com">mailto:russell@quadrix.com</a>] <br>
<b>Sent:</b> Mon 12/9/2002 11:11 AM <br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:Shane_Seidel@gwf.com.au">Shane_Seidel@gwf.com.au</a>; <a class="moz-txt-link-abbreviated" href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>
<br>
<b>Cc:</b><br>
<b>Subject:</b> Re: [Nagios-users] 1000+ processes then Nagios fails<br>
<br>
</font></div>
<p><font size="2">I've read some of the replies, and I have one more
suggestion to try. </font><br>
<font size="2"> If memory is the problem, and not CPU Load, try lowering
the </font><br>
<font size="2">service_reaper_frequency. By default it is set to
10, which means every </font><br>
<font size="2">10 seconds, Nagios will remove the contents of the
pipe (what ALL the </font><br>
<font size="2">plugins write to - there is only 1 pipe) and process
them. </font></p>
<p><font size="2">If you have that many services, you might be overwriting
the pipe. I </font><br>
<font size="2">had similar problems on one of my systems where the
box kept swapping </font><br>
<font size="2">all the time (about 750 service checks, most every
5 minutes). If you </font><br>
<font size="2">try lowering that value (try 5 for starters), Nagios
will read the pipe </font><br>
<font size="2">more frequently, so it shouldn't get overwritten as
much.</font></p>
<p><font size="2">Just another suggestion.</font></p>
<p><font size="2">-Russell Scibetti</font></p>
<p><font size="2"><a class="moz-txt-link-abbreviated" href="mailto:Shane_Seidel@gwf.com.au">Shane_Seidel@gwf.com.au</a> wrote:</font></p>
<p><font size="2">></font><br>
<font size="2">></font><br>
<font size="2">></font><br>
<font size="2">>Hi All,</font><br>
<font size="2">></font><br>
<font size="2">>We have a dual P3-1200mhz 512M RAM server running
Nagios 1.0 monitoring 180</font><br>
<font size="2">>devices and 800 services.</font><br>
<font size="2">></font><br>
<font size="2">>I have noticed that the number of nagios processes
increase until they reach a</font><br>
<font size="2">>count of approx 1000 at which time the server complains
it is "out of memory"</font><br>
<font size="2">>and starts shutting down services.</font><br>
<font size="2">></font><br>
<font size="2">>I found that executing '/etc/rc.d/init.d/nagios reload'
from cron would "solve"</font><br>
<font size="2">>the problem. The number of processes would return
to approx 60 and then start to</font><br>
<font size="2">>climb again. I have the cron job execute every
30 mins.</font><br>
<font size="2">></font><br>
<font size="2">>I took the config and put all the hosts, services,
etc into Netsaint 0.7 on a</font><br>
<font size="2">>P2-350Mhz 128 mb RAM and processes rarely rise to
over 100 and then return to</font><br>
<font size="2">>40-60.</font><br>
<font size="2">></font><br>
<font size="2">>Note that I use the "default" option while compiling
to maintain backward</font><br>
<font size="2">>compatibility for Netsaint.</font><br>
<font size="2">></font><br>
<font size="2">>Has anyone else experienced this? Is there any
way to restrict the number of</font><br>
<font size="2">>processes used by nagios. Note also that the big
server also runs MRTG/RRD on</font><br>
<font size="2">>approx 20 devices, although mrtg process complete</font><br>
<font size="2">></font><br>
<font size="2">>Any help appreciated</font><br>
<font size="2">>Thanks</font><br>
<font size="2">>Shane</font><br>
<font size="2">></font><br>
<font size="2">></font><br>
<font size="2">></font><br>
<font size="2">></font><br>
<font size="2">>**********************************************************************************************************************************************</font></p>
<p><font size="2">>This email and its attachments are confidential
subject to copyright and may be legally privileged. If they have come
to </font></p>
<p><font size="2">>you in error you should take no action based upon
the contents nor should you copy or show them to anyone. Please </font><br>
<font size="2">>delete the email and its attachments and inform
<a class="moz-txt-link-abbreviated" href="mailto:administrators@gwf.com.au">administrators@gwf.com.au</a></font><br>
<font size="2">>Any views or opinions expressed are those of the
author and do not necessarily represent those of George Weston Foods </font><br>
<font size="2">>Ltd.</font><br>
<font size="2">>Security: Internet email is not a completely secure
medium, please note this when considering the content of your message.</font></p>
<p><font size="2">>Viruses: We take precautions to ensure email is
free of viruses but cannot guarantee this. Accordingly we advise</font><br>
<font size="2">>scanning all email and attachments</font><br>
<font size="2">>*********************************************************************************************************************************************</font></p>
<p><font size="2">></font><br>
<font size="2">></font><br>
<font size="2">></font><br>
<font size="2">>-------------------------------------------------------</font><br>
<font size="2">>This SF.net email is sponsored by: Get the new Palm
Tungsten T </font><br>
<font size="2">>handheld. Power & Color in a compact size!
</font><br>
<font size="2">><a href="http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en">
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en</a>
</font><br>
<font size="2">>_______________________________________________</font><br>
<font size="2">>Nagios-users mailing list</font><br>
<font size="2">><a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a></font><br>
<font size="2">><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">
https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
</font><br>
<font size="2">></font><br>
<font size="2">></font></p>
<p><font size="2">-- </font><br>
<font size="2">Russell Scibetti</font><br>
<font size="2">Quadrix Solutions, Inc.</font><br>
<font size="2"><a href="http://www.quadrix.com">http://www.quadrix.com</a>
</font><br>
<font size="2">(732) 235-2335, ext. 7038</font></p>
<br>
<br>
<br>
<br>
<p><font size="2">-------------------------------------------------------</font><br>
<font size="2">This sf.net email is sponsored by:ThinkGeek</font><br>
<font size="2">Welcome to geek heaven.</font><br>
<font size="2"><a href="http://thinkgeek.com/sf">http://thinkgeek.com/sf</a>
</font><br>
<font size="2">_______________________________________________</font><br>
<font size="2">Nagios-users mailing list</font><br>
<font size="2"><a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a></font><br>
<font size="2"><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">
https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
</font></p>
</blockquote>
</blockquote>
<br>
<pre class="moz-signature" cols="$mailwrapcol">--
Russell Scibetti
Quadrix Solutions, Inc.
<a class="moz-txt-link-freetext" href="http://www.quadrix.com">http://www.quadrix.com</a>
(732) 235-2335, ext. 7038
</pre>
<br>
</body>
</html>