Downtime scheduling

Andreas Ericsson ae at op5.se
Fri Nov 2 20:09:31 CET 2007


Jerad Riggin wrote:
> Thanks for the reply.  Here is what I did..
> 
> 
> define timeperiod{
>         timeperiod_name maintenance
>         alias           Maintenance period
>         sunday          04:00-01:00
>         monday          04:00-01:00
>         tuesday         04:00-01:00
>         wednesday       04:00-01:00
>         thursday        04:00-01:00
>         friday          04:00-01:00
>         saturday        04:00-01:00
>         }
> 
> And on the host check template I put maintenance in as the
> notification/check schedule.  Will this work?
> 

Nopes. The start-hour must be less than the end-hour, or you'd
overflow into the next day.

Here's how to write it so you get what you want:

00:00-01:00,04:00-24:00

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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