That's correct.. the time period can not be 16:30-9:00 for a day...its
reverse. I think the range should be between 00:00-24:00 & in the same
order.

Regards,
Tatyaso

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Giles
Coochey
Sent: Thursday, October 04, 2007 2:13 PM
To: [email protected]
Subject: Re: [Nagios-users] What's wrong with this timeperiod
definition?

> >
> > define timeperiod{
> >         timeperiod_name offhours
> >         alias           Non-Office Hours, 7 Days A Week
> >         sunday          00:00-24:00
> >         monday          16:30-09:00
> >         tuesday         16:30-09:00
> >         wednesday       16:30-09:00
> >         thursday        16:30-09:00
> >         friday          16:30-09:00
> >         saturday        00:00-24:00
> >         }
> 
> monday          00:00-09:00,16:30-24:00
> etc.
> 

My Guess is that you cannot specify 16:30-09:00 (The 09:00 would be
Tuesday, not Monday etc...)

Your explanation is actually the correct syntax,

Check http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#timeperiod

Specifically the example:

Example Definition:


define timeperiod{
        timeperiod_name         nonworkhours
        alias                   Non-Work Hours
        sunday                  00:00-24:00
        monday                  00:00-09:00,17:00-24:00
        tuesday                 00:00-09:00,17:00-24:00
        wednesday               00:00-09:00,17:00-24:00
        thursday                00:00-09:00,17:00-24:00
        friday                  00:00-09:00,17:00-24:00
        saturday                00:00-24:00
        }


------------------------------------------------------------------------
-
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
[email protected]
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

-------------------------------------------------------------------------
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
[email protected]
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

Reply via email to