Service check on DOWN hosts!!!

Marc Powell marc at ena.com
Mon Feb 23 17:27:49 CET 2009


On Feb 23, 2009, at 9:43 AM, Sergio Ariel wrote:

> I have some services (in different hosts) I check by Nagios.
> Some of these service checks spend some seconds to execute, so, I've  
> set
>  a window time according each time execution. For example: I've some  
> 30
> seconds timeout service check.
> My problem is that when these host are DOWN, Nagios wait 30 seconds
> trying to execute the service check. After this 30 seconds, then  
> tell me
>   "CRITICAL SERVICE". I want to avoid Nagios checks any service in  
> DOWN
> host.
> Please, how can I get it?
> I want Nagios don't execute any service check until host is UP again.


Nagios isn't designed to do this; you'll need to jump through hoops to  
accomplish it. At the least you need to be running nagios-3 with  
active host checks configured. I'd suggest you look at creating an  
event handler for your hosts that issues the external command  
'DISABLE_HOST_SVC_CHECKS' when the host is non-OK and issues the  
external command 'ENABLE_HOST_SVC_CHECKS' when the host recovers.

--
Marc


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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