<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>Re: [Nagios-users] 1000+ processes then Nagios fails</TITLE>
</HEAD>
<BODY dir=ltr>
<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
[mailto:russell@quadrix.com] <BR><B>Sent:</B> Mon 12/9/2002 11:11 AM
<BR><B>To:</B> Shane_Seidel@gwf.com.au; nagios-users@lists.sourceforge.net
<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>Shane_Seidel@gwf.com.au 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
administrators@gwf.com.au</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>>Nagios-users@lists.sourceforge.net</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>Nagios-users@lists.sourceforge.net</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>
</BODY>
</HTML>