<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>NSCA and Latency</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>NSCA just doesn’t scale well within
Nagios. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>You will need to try something like the
OCP Daemon mentioned here: <a
href="http://www.nagioscommunity.org/wiki/index.php/OCP_Daemon">http://www.nagioscommunity.org/wiki/index.php/OCP_Daemon</a><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I believe Andreas Ericsson has also written
a broker module for NSCA. It is apparently still in its testing/alpha stages so
you would have to contact that person directly.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Jonathan<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Maxwell,Brady
[mailto:maxwellb@oclc.org] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, October 23, 2008
8:42 AM<br>
<b><span style='font-weight:bold'>To:</span></b>
nagios-users@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Nagios-users] NSCA and
Latency</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>My
Environment:</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>3 x
Dell 2950 Dual DualCore and 8 GB of RAM</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>One
system runs checks against our Linux servers</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>One
runs checks against our Windows servers</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>We
are running SLES10 update 3</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Both
systems use nsca to send their check results to a third server that displays
the service checks for our operators.</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>All
three systems are</span></font> <font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'>on the same vlan but</span></font> <font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>separate cisco
switchs.</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I
am running nsca in daemon mode on the central server with this command</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>/usr/local/nagios/bin/nsca
-c /usr/local/nagios/etc/nsca.cfg</span></font> <font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>–daemon</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Nsca.cfg
is as follows:</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>pid_file=/var/run/nsca.pidserver_port=5667#server_address=192.168.1.1nsca_user=nagiosnsca_group=nagios#nsca_chroot=/var/run/nagios/rwdebug=1command_file=/usr/local/nagios/var/rw/nagios.cmdalternate_dump_file=/usr/local/nagios/var/rw/nsca.dumpaggregate_writes=1append_to_file=1max_packet_age=300password=xxxxxxxxxxdecryption_method=14</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I
just set the aggregate and append options to try and fix the problem</span></font>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>they
were not set before either way the results are the same.</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Ok
so on the 2 servers doing the checks…. Everything runs fine even with the OCSP
running my send_service_check_results script.</span></font> <font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>My script is pretty
much straight out of the book.</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>#!/bin/sh#
Arguments:# $1 = Hostname of the host (using the $HOSTNAME$ macro)# $2 =
Service description of the service (using the $SERVICEDESC$ macro)# $3 =
Service status id of the service (using the $SERVICESTATUSID$ macro)# $4 =
Output of the Service Check (using the $SERVICEOUTPUT$ macro)/bin/echo
"$1","$2","$3","N3 - $4" |
/usr/local/nagios/libexec/send_nsca -H</span></font> <font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>10.10.129.37 -c
/usr/local/nagios/etc/send_nsca.cfg -d ","</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Like
I said everything is fine on the 2 servers even with OCSP on. Between the 2
servers we are running about 10k service checks, latency is very low just a few
seconds. However if I turn on the NSCA Deamon on the central server my latency
creeps up to about 1500+ seconds with in an hour and just gets worse from there
on both remotes. The checks that should run every 5 minutes on the 2 remote
servers end up running every few hours or less. The central server is doing 0
active checks.</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I
set debug mode and that proved to provide very little insight into the problem.</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>CPU
and Mem stats are both very low on all three server. The same thing can be said
for the network, network utilization is less than 2% and there are no errors on
the interfaces. Overall hardware utilization is 10% or</span></font> <font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>less on</span></font>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>these
three systems.</span></font> <o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>So
my question is has anyone had this kind of problem with NSCA? What am I
missing? Should</span></font> <font size=2 face=Arial><span style='font-size:
10.0pt;font-family:Arial'>I be batching my service checks on the remote
servers? Should I be using xinetd for NSCA instead of deamon mode?</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Thanks</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Brady</span></font><o:p></o:p></p>

</div>

</div>

<p></p><p><br>This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that this email is error or virus free.  Thank you.</p></body>

</html>