high check latency, slow update of config on web interface

Frank J. Gómez frank at crop-circle.net
Wed May 7 17:00:32 CEST 2008


If you're restarting Nagios through the web interface (rather than on the
command line), I think I can help you.  My understanding is that restarting
Nagios through the web interface is done as an external
command<http://www.nagios.org/developerinfo/externalcommands/commandlist.php>.
The web interface sends commands to the command_file (set in your nagios.cfg
file), but Nagios only checks the command_file periodically.  I think the
default interval is 15 minutes.  Below are the relevant settings I have in
my nagios.cfg file, plus a hyperlink I think you may find useful.

check_external_commands=1
command_check_interval<http://nagios.sourceforge.net/docs/2_0/configmain.html#command_check_interval>
=1
command_file=/var/nagios/rw/nagios.cmd

Changing this interval will also affect how quickly other external commands
(such as en/disabling notifications) respond to the web interface.


On Wed, May 7, 2008 at 10:33 AM, Marc Powell <marc at ena.com> wrote:

>
>
> > -----Original Message-----
> > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> > bounces at lists.sourceforge.net] On Behalf Of #ANG CHIN TECK#
> > Sent: Monday, May 05, 2008 11:05 PM
> > To: nagios-users
> > Subject: [Nagios-users] high check latency,slow update of config on
> web
> > interface
> >
> > Hi all,
> >
> > I am currently monitoring 50 hosts with no services, only pinging
> them.
> > perf info for these 50 hosts:
> > check interval: 10 mins
> > check duration: avg 4 s (5 pings)
> > but my check latency fluctuates alot (10s , 140s , 250s)
> >
> > I am also monitoring 2 other hosts with 10 services.
> > perf info for these 10 services:
> > check interval: 1 min
> > check duration: avg 3s
> > check latency fluctuates (2s, 5s, 48s)
> >
> > Why does the latency fluctuates so much?
>
> The version of nagios you are using would be critical information. In
> nagios 2.x, active host checks are run in serial, not in parallel and
> are highly discouraged because they introduce significant latencies. In
> 3.x, they've been made to run in parallel. I'm guessing you're using
> 2.x. Nagios is primarily a service monitoring application and is
> designed to monitor services. Host monitoring is typically only done on
> an as-needed basis.
>
> > Another problem is that after i update my config file, verify and
> restart
> > nagios, it takes 15 mins for the web interface to register the change.
>
> Are you using ndoutils? With that few hosts and services the change
> should be immediate. Do you see that your objects cache file contains
> the new information? Do you have multiple nagios daemons running at the
> same time?
>
> > Are the 2 problems linked?
>
> Not in any way that I've ever seen.
>
> --
> Marc
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080507/013c4c9f/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list