Bug, Feature or Layer 8 problem?
Andreas Ericsson
ae at op5.se
Mon Mar 30 16:27:01 CEST 2009
Andre Timmermann wrote:
> Hello List,
>
> we are generating the timeperiods for our oncall-support via script.
> Sometimes, one line of the configfile semes to be ignored:
>
> define timeperiod{
> timeperiod_name andre_2pikett_week
> alias Andre 2nd Pikett
>
> 2009-03-29 09:00-24:00
> 2009-03-30 00:00-09:00
> 2009-03-30 18:00-24:00
> 2009-03-31 00:00-09:00
> }
>
> In this case there is a problem with the second definition of
> 2009-03-30, it will be ignored. So I will not get any messages between
> 18:00 and 24:00.
>
> Of course, if i I use
> 2009-03-30 00:00-09:00,18:00-24:00
> it will work.
>
> Unfortunately there is no message during startup of nagios, stating that
> it will ignore one line of my configfile.
>
> Is this a bug or a feature? ;)
>
It's a feature, of sorts. Exceptions are parsed as they are encountered,
and timerange definitions are absolute. This means you actually have
to put both all timeranges for a specific date on the same line.
Nagios not warning about it could possibly be a bug, but then again,
it's pretty nifty to be able to temporarily override a value by simply
specifying the variable again later in the object, so I'm not so sure.
Can't you make your script generate timeranges in the proper format?
It seems to me like that would by far be the simplest solution.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
------------------------------------------------------------------------------
_______________________________________________
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