USE directive not supported in timeperiod definition?
Posted: Fri Aug 12, 2011 12:36 pm
I'm trying to follow the guide for setting up on-call rotations. It provides great sample timeperiod definitions. In our installation of Nagios Core 3.2.3, whenever I attempt to create a timeperiod definition with 'USE', I get a config file error on the nagios restart.
The on-call rotation timeperiod example:
If I copy-and-paste the above text into my timeperiods.cfg file and attempt to restart nagios (service nagios restart), I get the standard config error:
In my file, I changed out 'weekdays' for '24x7' so the above definition would be referring to another existing timeperiod defined earlier in the file.
The object definition docs don't include 'USE' in the timeperiod definition:
My question is, has 'USE' been depricated in the timeperiod definitions?
-- mtf
The on-call rotation timeperiod example:
Code: Select all
define timeperiod{
timeperiod_name john-oncall
use weekdays ; Include weekdays
exclude holidays ; Exclude holiday dates/times defined elsewhere
}
Code: Select all
Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration.The object definition docs don't include 'USE' in the timeperiod definition:
Code: Select all
define timeperiod{
timeperiod_name timeperiod_name
alias alias
[weekday] timeranges
[exception] timeranges
exclude [timeperiod1,timeperiod2,...,timeperiodn]
}My question is, has 'USE' been depricated in the timeperiod definitions?
-- mtf