Host check behavior

Marc Powell marc at ena.com
Wed Aug 24 19:22:46 CEST 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Horvath Tamas
> Sent: Tuesday, August 23, 2005 3:26 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Host check behavior
> 
> Hi List!
> 
> MY QUESTION: Does Nagios checks host status at every
normal_check_interval
> after it put a service associated to the host to a hard non-OK state?
> (When
> hard state change has NOT occurred and the service remains in the same
> non-OK state.)

The short answer is no, it won't. I've tried to find this in the
documentation but I can't. To the best of my understanding and
recollection, Nagios only runs the host checks when a service on that
host changes state. In an ideal situation where a host goes hard down,
nagios will only check the host when the service changes from OK and
then again when the service returns to OK. I'm not 100% sure on the last
part of that statement but looking at base/checks.c seems to bear that
out quite nicely. I don't use host checks at all so I can't directly
verify. Service checks _do_ continue at normal_check_interval while the
host is down however.

> 
> BACKGROUND:
> 
> I've been used Nagios 1.2 since 01.2004. I read all of its documents,
so I
> know about "retry_check_interval", "normal_check_interval" and so on.
> 
> I know that: "When a service check results in a non-OK state, Nagios
will
> check the host that the service is associated with to determine
whether or
> not is up."
> 
> I have a lots of routers with leasd lines and ISDN backup lines. I'm
going
> to set up Nagios int he following way: if it can't ping leased line
> inetrface it uns host check command, which ping ISDN interface. So if
> router
> is reachable, I send notification only about leased line status.
(Leased
> line is a service of the router.) If router is not reachable, Nagios
send
> me
> a host status message.

This looks workable.

--
Marc


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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