Essentially all i want to do is exclude about 5-10 minutes from the 24x7 timeperiod that nagios defines.
The docs on timeperiods http://nagios.sourceforge.net/docs/3_0/ ... timeperiod make no mention about timeperiods being able to inherit from each other, however it is used over here http://nagios.sourceforge.net/docs/3_0/ ... ation.html# cat /etc/nagios3/conf.d/timeperiods_nagios2.cfg
###############################################################################
# timeperiods.cfg
###############################################################################
# This defines a timeperiod where all times are valid for checks,
# notifications, etc. The classic "24x7" support nightmare.
define timeperiod{
timeperiod_name 24x7
alias 24 Hours A Day, 7 Days A Week
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
}
# Here is a slightly friendlier period during work hours
define timeperiod{
timeperiod_name workhours
alias Standard Work Hours
monday 09:00-17:00
tuesday 09:00-17:00
wednesday 09:00-17:00
thursday 09:00-17:00
friday 09:00-17:00
}
# The complement of workhours
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 one is a favorite: never
define timeperiod{
timeperiod_name never
alias Never
}
# end of file
Ideally, id like to define a timeperiod like such:
Code: Select all
define timeperiod{
timeperiod_name reboot_time
alias Reboot
monday 03:00-03:10
tuesday 03:00-03:10
wednesday 03:00-03:10
thursday 03:00-03:10
friday 03:00-03:10
}
Code: Select all
define timeperiod{
timeperiod_name 24x7_no_reboot
alias 24x7_no_reboot
use 24x7
exclude reboot_time
}
fails withnagios3 -v /etc/nagios3/nagios.cfg
With all that, can timeperiods not inherit from each other or am i doing something wrong?Template '24x7' specified in timeperiod definition could not be not found