Nagios takes too much time to send notifications

Andreas Ericsson ae at op5.se
Thu Sep 18 22:10:51 CEST 2008


Good gods, Patrick. Please add *some* form of prefixing for
the text you're replying too. I've been thinking you and
Jorge are one and the same for at least three threads now.

Morris, Patrick wrote:
> Since I have added the notifications via SMS, I noticed that the time passed since Nagios discovers that a service or host changes the state and sends the notifications (that you can check in the notifications web interface) sometimes it takes up to 10 minutes.
> 
> Why it happens? It detects that the service is critical but sometimes to receive the notification is long time!
> 
> It is not useful for a demo of nagios :(
> 
> Any hint?
> Check your logs to see if it's a mail delay or something inside Nagios causing the delay. Once you know why the delay is occurring, you can take steps to minimize it.
> 

It's by design. If you look in the web-interface you'll see that the
state of the host or service is soft (rather, you'll see that
"Attempts" is at x/y, where y > x). This is intended, since lots of
stuff sometimes have "hiccups" in a network during temporary lagspikes.
After a minute or two those hiccups usually resolve themselves, so
Nagios has an option to delay notifications, and also to try several
times to check the service before it sends one.

If you really want Nagios to send a notification the instant it
notices something is wrong, set "max_check_attempts" to 1 in all your
host and service object definitions.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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