<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=050301423-05122005><FONT face=Arial size=2>I
should point out I'm running Nagios 1.3, which will only perform host
checks if a service check fails. I use check_ping and the 30 seconds and 6
seconds numbers were what I passed to check_ping in my checkcommands.cfg
(although it's probable check_ping wasn't waiting the full 30 seconds, it
certainly did wait longer than 6 seconds). It was in the host template
definition that I set max_check_attempts.</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=050301423-05122005><FONT face=Arial size=2>If you just want to
see whether host checks are the source of your latency, try
temporarily replacing your host check command with a shell script which does
"exit 0". You will of course have to suffer through more service notifications
due to downed hosts.</FONT></SPAN></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>--<BR>Ludwig Pummer<BR>System Administrator<BR>Copart Auto
Auctions<BR><BR></FONT></P>
<DIV><FONT face=Arial size=2></FONT> </DIV><FONT face=Arial
size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><FONT face=Arial size=2></FONT><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Blake Krone
[mailto:blakekrone@gmail.com] <BR><B>Sent:</B> Monday, December 05, 2005 3:14
PM<BR><B>To:</B> Ludwig Pummer<BR><B>Cc:</B> Nagios Users<BR><B>Subject:</B>
Re: [Nagios-users] Huge Service Latencies<BR></FONT><BR></DIV>
<DIV></DIV>I have active host checks set to 0 so that they won't actually
check unless a service fails on the host. How do you specify a recheck in
seconds? I thought minutes were all that was allowed.<BR><BR>-Blake<BR><BR>
<DIV><SPAN class=gmail_quote>On 12/5/05, <B class=gmail_sendername>Ludwig
Pummer</B> <<A
href="mailto:Ludwig.Pummer@copart.com">Ludwig.Pummer@copart.com</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV dir=ltr align=left><FONT face=Arial size=2><SPAN>I had large latencies
caused by (1) hosts being down and (2) a host check that took way too long.
Nagios will suspend all service checks while it performs a host check. In my
case, the Nagios config I inherited made 10 attempts at 30 seconds each
attempt before declaring a host to be down, so if one host went down, the
host check took 300 seconds. I typically have 15 hosts down out of 475. I
changed my host checks to 3 attempts at 6 seconds each, and
latencies went way down.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<P><FONT size=2>--<BR>Ludwig Pummer<BR>System Administrator<BR>Copart Auto
Auctions<BR><BR></FONT></P>
<DIV><FONT face=Arial size=2></FONT> </DIV><FONT face=Arial
size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV lang=en-us dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>From:</B> <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:nagios-users-admin@lists.sourceforge.net"
target=_blank>nagios-users-admin@lists.sourceforge.net</A> [mailto:<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:nagios-users-admin@lists.sourceforge.net"
target=_blank>nagios-users-admin@lists.sourceforge.net</A>] <B>On Behalf
Of </B>Blake Krone<BR><B>Sent:</B> Monday, December 05, 2005 2:08
PM<BR><B>To:</B> Nagios Users<BR><B>Subject:</B> [Nagios-users] Huge
Service Latencies<BR></FONT><BR></DIV><SPAN class=q>
<DIV></DIV>Service Check Execution Time: 0.10 / 10.04 /
2.175 sec<BR>Service Check Latency: 21.25 / 483.37 /
224.970 sec<BR>Host Check Execution Time: 0.06 / 10.70 /
4.307 sec<BR>Host Check Latency: 0.00 / 529.15 / 5.137
sec <BR># Active Host / Service Checks: 103 / 236<BR>#
Passive Host / Service Checks: 0 / 1<BR><BR>Machine is a
P3 733mhz with 128mb ram running 2.6.11-gentoo-r3 kernel and Nagios
2.03b<BR><BR><BR></SPAN><SPAN class=q>Any ideas as to why it has such huge
latencies?
<BR><BR></SPAN></BLOCKQUOTE></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>