<!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.2654.45">
<TITLE>RE: [Nagios-users] NSCA Distributed Server</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Marc,</FONT>
</P>

<P>        <FONT SIZE=2>First and foremost, Thanks for the response!</FONT>
</P>

<P>        <FONT SIZE=2>I was unable to locate anything strange when I did a tail -f /var/log/messages on either machine.</FONT>
</P>

<P>        <FONT SIZE=2>Thanks for the heads up on the command_check_interval setting.  That was there for testing and I forgot to change it back.</FONT></P>

<P>        <FONT SIZE=2>I'm not sure why the oscp_command is not executing on the distributed server when the configuration tells it to execute?? </FONT></P>

<P>        <FONT SIZE=2>One strange thing to note though...  If I run the script manually from the distributed server it connects for 10secs and then times out.  This is the output of /var/log/messages on the central server...</FONT></P>

<P>                <FONT SIZE=2>Dec 17 13:20:44 nsca[6650]: Handling the connection...</FONT>
<BR>                <FONT SIZE=2>Dec 17 13:20:54 nsca[6650]: End of connection...</FONT>
</P>

<P><FONT SIZE=2>Thanks again!</FONT>
<BR><FONT SIZE=2>Jeff</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Marc Powell [<A HREF="mailto:marc@ena.com">mailto:marc@ena.com</A>] </FONT>
<BR><FONT SIZE=2>Sent: Wednesday, December 17, 2003 1:18 PM</FONT>
<BR><FONT SIZE=2>To: Jeff Engstrom; nagios-users@lists.sourceforge.net</FONT>
<BR><FONT SIZE=2>Subject: RE: [Nagios-users] NSCA Distributed Server</FONT>
</P>

<P><FONT SIZE=2>See inline comments marked with <MARC>:</FONT>
<BR><FONT SIZE=2>________________________________________</FONT>
<BR><FONT SIZE=2>From: Jeff Engstrom [<A HREF="mailto:Jeff.Engstrom@fortix.net">mailto:Jeff.Engstrom@fortix.net</A>] </FONT>
<BR><FONT SIZE=2>Sent: Wednesday, December 17, 2003 2:44 PM</FONT>
<BR><FONT SIZE=2>To: 'nagios-users@lists.sourceforge.net'</FONT>
<BR><FONT SIZE=2>Subject: [Nagios-users] NSCA Distributed Server</FONT>
</P>

<P><FONT SIZE=2>Greetings,</FONT>
</P>

<P><FONT SIZE=2>            For some reason the script that updates the central server is not executing but all other external commands seem to work fine.  I was hoping that someone might be able to help?  Here is the configuration (sorry about the length)...</FONT></P>

<P><FONT SIZE=2><MARC> - Is there any error message in /var/log/messages on either machine? You might try enabling the debug option in nsca.cfg to get more detailed information. You should also try submitting a check result by calling send_nsca manually. That might spit out some errors. I'd also verify that nsca is listening on the IP/Port you expect it to be via netstat -aelp.</FONT></P>
<BR>

<P><FONT SIZE=2>Central Server (10.1.1.4)</FONT>
<BR><FONT SIZE=2>            NSCA running in daemon mode with the following config...</FONT>
<BR><FONT SIZE=2>                        server_port=5667</FONT>
<BR><FONT SIZE=2>[snip]</FONT>
<BR><FONT SIZE=2><MARC> NSCA config looks fine at first glance.</FONT>
<BR><FONT SIZE=2>            </FONT>
<BR><FONT SIZE=2>            nagios.cfg has the following..</FONT>
<BR><FONT SIZE=2>[snip]</FONT>
</P>

<P><FONT SIZE=2>command_check_interval=30s</FONT>
</P>

<P><FONT SIZE=2><MARC> - This isn't valid for a 1.1 or below config AFAIK (it may be for a 2.0 config though). This should be an integer value specifying a multiple of the interval_length. For example, if you have your interval length set at 60 (seconds), then a 1 here would cause nagios to check for external commands every 60 seconds. 2 would mean every 120 seconds. The only odd value you could have here would be -1 which would cause nagios to check for external commands as often as possible. This could very well be your problem. A simple test would be to do an ls -l on rw/nagios.cmd and see if it's anything other than 0 length. If it's not then NSCA is successfully appending new results to the file but nagios may not be reading them.</FONT></P>

<P><FONT SIZE=2>Distributed Server (10.1.1.3)</FONT>
</P>

<P><FONT SIZE=2>[snip]</FONT>
<BR><FONT SIZE=2><MARC> Distributed server information looked fine. It is interesting to note that your had the command_check_interval set to -1 here where I would expect the least number of external commands (if any) to be received. That's more of a work-flow thing anyway I would suspect.</FONT></P>

<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>Marc </FONT>
</P>
<BR>

</BODY>
</HTML>