Question about time definitions.

Ben O'Hara bohara at gmail.com
Wed May 10 17:05:20 CEST 2006


On 5/10/06, Tiernan, Michael C. <mtiernan at draper.com> wrote:
>
> I've not found this mentioned. (A nickel says that as soon as I hit
> "Send" I'll find it.)
>
> Can you define a timeperiod with two names?
>
> (Nagios 2 & RHEL-4)
>
> Example:
>
> define timeperiod {
>         timeperiod_name 24x7,anytime
>         timeperiod_alias        Whenever, it's important!
>         sunday  00:00-24:00
>         monday  00:00-24:00
>         tuesday 00:00-24:00
>         wednesday       00:00-24:00
>         thursday        00:00-24:00
>         friday  00:00-24:00
>         saturday        00:00-24:00
> }


AFAIK no, but you can define two timeperiods the same such as

define timeperiod {
       timeperiod_name 24x7
       timeperiod_alias        Whenever, it's important!
       sunday  00:00-24:00
       monday  00:00-24:00
       tuesday 00:00-24:00
       wednesday       00:00-24:00
       thursday        00:00-24:00
       friday  00:00-24:00
       saturday        00:00-24:00
}
define timeperiod {
       timeperiod_name anytime
       timeperiod_alias        Whenever, it's important!
       sunday  00:00-24:00
       monday  00:00-24:00
       tuesday 00:00-24:00
       wednesday       00:00-24:00
       thursday        00:00-24:00
       friday  00:00-24:00
       saturday        00:00-24:00
}

Although what would this achieve?  Why not just use the one?

Ben
--
"A Scientist will earn a living by taking a really difficult problem and
spends many years solving it, an engineer earns a living by finding really
difficult problems and side stepping them"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060510/b4a626c5/attachment.html>


More information about the Users mailing list