<!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 5.50.4611.1300" name=GENERATOR></HEAD>
<BODY>
<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></BODY></HTML>