Freshness checking, Service dependicies and st atus output of all this...

Dan Hopkins dan.hopkins at uk.easynet.net
Thu Feb 10 10:02:51 CET 2005


> -----Original Message-----
> From: Chris Hale [mailto:chale at nwscan.net]
> Sent: 09 February 2005 22:43
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Freshness checking, Service dependicies and
> status output of all this...
> 
> 
> I guess I actually have two separate questions.
> 
> 1)  I would like to use dependencies, but I don't see anyway 
> of indicating
> that the service being checked, is not, when the dependency fails.
> 
> IE:  I have on average 6 active checks per host... one of 
> them being a ping
> test, the other 5 system variables (drive space, memory 
> usage, etc.).  There
> is no reason to eat up forks and processor time (waiting for 
> the timeout) on
> the other five tests when the ping test is definitely hard 
> down (especially
> when the outage is close to the nagios server, causing a lot 
> of hosts to go
> into timeout loops), hence the reason why we would like to 
> use dependencies.
> But it appears that you can only suppress the active check and/or the
> notification.  In suppressing the check, effectively we would only be
> skipping the check, and there is no indication in the test 
> results that we
> did so.  We would like to have the status be updated with 
> something like
> "Unknown state: PING dependency failed"  I thought about a 
> event handler,
> but since there is no state change, you can't use that.

<snip>

Chris,
Perhaps I'm missing you're point, but I'm not sure why you're going to all
this trouble yourself - what you're describing is a native feature of
Nagios: if any service check fails, the host check is performed, if the host
check fails, it's marked down and no other service checks for the host are
performed i.e. all service checks are dependent on the host (ping) check.

It could be that you've disabled host checks (but generally the only reason
to disable host checks is when you want all service checks to be scheduled
regardless of the state of the host - which doesn't seem to be what you
want)

Regards
Dan


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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