parents/dependencies confusion
Guy B. Purcell
guy at extragalactic.net
Wed Oct 5 20:32:03 CEST 2005
On Oct 5, 2005, at 09:20, brianmas at highstream.net wrote:
> The Status Map does show what I'd expect: nagios ---> gateway/
> parent machine
> ---> fans out to a bunch of servers. One thing though the "Status
> Information"
> for 2 of the 3 gateways are in "Pending" state. They are
> pingable ... little
> confused on that. It's been 20 hours. hm adding a service to them
> (ping, kinda
> redundant) and they now show as OK. Known issue? Still using 1.2 btw.
Well, yes, it's a known issue in the sense that it's the way Nagios
works: it doesn't assume initial states. When you add a new
service, it's in the Pending state until the service check returns a
different state. If, as in your case, you add a new host with _no_
associated services, then Nagios will keep the host in the Pending
state. If you add a service, Nagios will then track the host's state.
I've often wondered whether I consider it a bug or not that Nagios
doesn't just force one initial active host check for new hosts. I'm
still on the fence, because I need to run some tests. It all comes
down to what happens if such a service-devoid host (let's say it's a
router) goes down and is the parent of other hosts: in that case,
active checks of the child hosts should ensue (and fail), followed by
an active check of the router (which also fails), and an active check
of the router's parent (which we'll assume succeeds)--all of which
should yield one DOWN alert for the router, and possibly some
UNREACHABLE alerts for its children (I forget--been a while since
I've read the docs). If Nagios does that, and marks the host as back
UP when it comes back up & the hosts & services beyond it are
"visible" once again, then I'd consider the lack of an initial host
check a quirk of Nagios, rather than a bug; otherwise, I'd consider
it a bug.
-Guy
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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