<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Nagios processes hanging around for a long time</TITLE>
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=405582322-30122002><FONT face=Arial color=#0000ff
size=2>Actually it is all checks. But, I think I figured out the
problem. All of these writes were waiting to write to the file descriptor
that the master Nagios process reads for status. I think that some buffer
was filling up and these children processes were having to wait for the master
process to clean out the FIFO before they could write to it. By adjusting
the 'service_reaper_frequency', I was able to get rid of the
problem.</FONT></SPAN></DIV>
<DIV><SPAN class=405582322-30122002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=405582322-30122002><FONT face=Arial color=#0000ff size=2>Thanks
for all of the help from everyone though.</FONT></SPAN></DIV>
<DIV><SPAN class=405582322-30122002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=405582322-30122002><FONT face=Arial color=#0000ff
size=2>--Ben</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Carroll, Jim P [Contractor]
[mailto:jcarro10@sprintspectrum.com]<BR><B>Sent:</B> Monday, December 30, 2002
3:11 PM<BR><B>To:</B> Nelson, Ben;
'nagios-users@lists.sourceforge.net'<BR><B>Subject:</B> RE: [Nagios-users]
Nagios processes hanging around for a long tim e<BR><BR></FONT></DIV>
<DIV><SPAN class=708250822-30122002><FONT face="Comic Sans MS" color=#000080
size=2>The only thing which springs to mind is a misconfigured resolv.conf,
causing long delays in resolving hostnames.</FONT></SPAN></DIV>
<DIV><SPAN class=708250822-30122002><FONT face="Comic Sans MS" color=#000080
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=708250822-30122002><FONT face="Comic Sans MS" color=#000080
size=2>Do you have this problem when you execute a plugin from the command
line? Does this happen with all plugins, or just network-related
ones?</FONT></SPAN></DIV>
<DIV><SPAN class=708250822-30122002><FONT face="Comic Sans MS" color=#000080
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=708250822-30122002><FONT face="Comic Sans MS" color=#000080
size=2>jc</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Nelson, Ben
[mailto:bnelson@rightnow.com]<BR><B>Sent:</B> Monday, December 30, 2002 1:46
PM<BR><B>To:</B> 'nagios-users@lists.sourceforge.net'<BR><B>Subject:</B>
[Nagios-users] Nagios processes hanging around for a long
time<BR><BR></FONT></DIV>
<P><FONT face=Arial size=2>I am currently running Nagios 1.0 and I always
seem to have a lot of nagios processes hanging around after they have done
their checks. As a result, many service checks take a long time to
complete (4-5 minutes in some cases).</FONT></P>
<P><FONT face=Arial size=2>To try and debug this I attached strace to
several of them, and got very similar output every time. Here is a
sample:</FONT> <BR><FONT face=Arial size=2>write(7,
"servername\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 504) =
504</FONT> <BR><FONT face=Arial size=2>------------------ insert long pause
here ----------------------------</FONT> <BR><FONT face=Arial
size=2>close(7)
= 0</FONT> <BR><FONT face=Arial
size=2>_exit(0)
= ?</FONT> </P>
<P><FONT face=Arial size=2>All of the processes that seem to take a long
time to complete seem to be waiting on IO somewhere, since the write call
takes quite a while to complete. I can't seem to figure out which file
they are writing to here. Does anybody know?</FONT></P>
<P><FONT face=Arial size=2>--Ben</FONT> </P>
<P><FONT face=Arial
size=2>==============================================</FONT> <BR><FONT
face=Arial size=2>Ben Nelson</FONT> <BR><FONT face=Arial size=2>Sr. Systems
Administrator, Hosting</FONT> <BR><FONT face=Arial size=2>RightNow
Technologies (www.rightnow.com)</FONT> <BR><FONT face=Arial size=2>A Better
Way to Serve Your Customers</FONT> </P></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>