Is there a way to prevent a host check in agive time period?

Andreas Ericsson ae at op5.se
Fri Mar 4 16:45:23 CET 2005


Erik Spigle wrote:
> I checked several times and this time period that excludes this one
> hour out of every day is what is set for the check_period /
> notification_period for services (as stated in my first message on
> 02-25-05).  This is working as expected.  There is no service check
> or notification on any service of this host during this one hour "do
> not check / notify" period.
> 
> I am not using any type of passive checks, so I guess freshness
> checking is a non-issue.
> 
> No other hosts anywhere in the parent tree (or anywhere for that
> matter) are going down during this downtime time period.
> 
> Lastly, I'd really like to avoid hardcoding this to assume everything
> is OK during this time period by modifying the host check command.
> Is there some other file I'm missing.  I've checked and checked again
> the hosts.cfg, services.cfg and timeperiods.cfg files.  They all are
> in line with each other about what time period to use for what host /
> services on that host.
> 

Fun problem. Try compiling nagios with debug support for checks (DEBUG1, 
I think) and pipe the output somewhere so you can parse it when you have 
leisure. That way you can see exactly what it's trying to run during the 
timeperiod, or why it doesn't try to run things.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
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