<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Nagios processes hanging around for a long time</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">------------------ insert long pause here ----------------------------</FONT>
<BR><FONT SIZE=2 FACE="Arial">close(7)                                = 0</FONT>
<BR><FONT SIZE=2 FACE="Arial">_exit(0)                                = ?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">--Ben</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">==============================================</FONT>
<BR><FONT SIZE=2 FACE="Arial">Ben Nelson</FONT>
<BR><FONT SIZE=2 FACE="Arial">Sr. Systems Administrator, Hosting</FONT>
<BR><FONT SIZE=2 FACE="Arial">RightNow Technologies (www.rightnow.com)</FONT>
<BR><FONT SIZE=2 FACE="Arial">A Better Way to Serve Your Customers</FONT>
</P>

</BODY>
</HTML>