timeperiods.cfg

Andreas Ericsson ae at op5.se
Mon Apr 4 12:46:40 CEST 2005


Marco Borsani wrote:
> Hi all.
> 
> I would't d like to check and receive notifications for a service between
> 04:00 and 07:00 in the morning and between 14:00 and 16:30 in the afternoon.
> Is it correct use following timeperiod?
> 
> define timeperiod{
>         timeperiod_name strano
>         alias           strange time
>         sunday          00:00-04:00,07:00-14:00,16:30-24:00
>         monday          00:00-04:00,07:00-14:00,16:30-24:00
>         tuesday         00:00-04:00,07:00-14:00,16:30-24:00
>         wednesday       00:00-04:00,07:00-14:00,16:30-24:00
>         thursday        00:00-04:00,07:00-14:00,16:30-24:00
>         friday          00:00-04:00,07:00-14:00,16:30-24:00
>         saturday        00:00-04:00,07:00-14:00,16:30-24:00
>         }
> 

No. This will do the exact opposite of what you want. You need to 
re-read the docs.

> I am doing this question because last saturday night , at 03:12 a.m. , I
> receive a notification.
> 
> In the service definition I use "strano" for check_period and
> notification_period variables.
> 
> Thanks
> 
> Marco
> 
> 
> 
> -------------------------------------------------------
> 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
> 

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