problem with timeperiod configuration

Dan McManus mothbitten1 at yahoo.com
Wed Dec 3 19:20:56 CET 2008


There is no space between - and 1, so how do I file a bug report?

Thanks!

Dan



----- Original Message ----
From: Assaf Flatto <assaf.flatto at ssp.uk.com>
To: nagios-users at lists.sourceforge.net
Sent: Wednesday, December 3, 2008 3:13:40 AM
Subject: Re: [Nagios-users] problem with timeperiod configuration


On Tuesday 02 December 2008 23:45:31 Dan McManus wrote:
> Notifications aren't sent to a group if a particular line is active in my
> timeperiods.cfg file:
>
> define timeperiod{
>         name            weekdays
>         timeperiod_name weekdays
>         alias           Normal Day Coverage
>         monday          06:00-18:00
>         tuesday         06:00-18:00
>         wednesday       06:00-18:00
>         thursday        06:00-18:00
>         friday          06:00-18:00
>         }
>
> define timeperiod{
>         name                    holidays
>         timeperiod_name         holidays
>         alias                   U.S. Holidays
>
>         # holidays
>         january 1               00:00-24:00     ; New Years
>         2010-12-31              00:00-24:00     ; New years is on a
> Saturday 2012-01-02              00:00-24:00     ; New years is on a Sunday
> monday 3 january        00:00-24:00     ; MLK day
>         monday 3 february       00:00-24:00     ; President's Day
> # fine to here
>         monday -1 may           00:00-24:00     ; Memorial Day (last Monday
> in May) <snip>
>
> define timeperiod{
>         timeperiod_name         tier1-daytime
>         use                     weekdays        ; Include weekdays
>         exclude                 holidays        ; Exclude holiday
> dates/times defined elsewhere }
>
> When I have "monday -1 may..." commented out, it works fine, but if not, it
> doesn't. Is this a bug, or am I doing something wrong somehow? This is on
> both 3.03 and 3.06.
>

reading the documentation , it looks like the definitions are correct and this might be a bug , one 
small nitpicking detail - that might make the difference  , in the
monday -1 may           00:00-24:00   , definition :

is the `-` directly attached to the "monday" string os is there a space between them ?


-- 
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE





IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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



      

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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