I found problem with timeperiods. I made something like this:
Code: Select all
define timeperiod{
# name ex
timeperiod_name ex
alias ex
january 1 00:00-24:00
december 25 00:00-24:00
may 1 01:00-23:00
may 3 00:00-24:00
}
define timeperiod{
# name 917
timeperiod_name 917
alias 917
sunday 00:00-00:00
monday 09:05-16:50
tuesday 09:05-16:50
wednesday 09:05-16:50
thursday 09:05-16:50
friday 09:05-16:50
saturday 00:00-00:00
}
define timeperiod{
# name report
timeperiod_name report
# alias R
use 917
exclude ex
}
Code: Select all
Error: Template '917' specified in timeperiod definition could not be not found (config file '/usr/local/nagios/etc/objects/timeperiods.cfg', starting on line 85)
After that I deleted comment at line “# name 917”, leaving definition like this:
Code: Select all
define timeperiod{
name 917
timeperiod_name 917
alias 917
sunday 00:00-00:00
monday 09:05-16:50
tuesday 09:05-16:50
wednesday 09:05-16:50
thursday 09:05-16:50
friday 09:05-16:50
saturday 00:00-00:00
}
Also I didn’t find any information about “name” point in timeperiod definition in documentation, and in definition of timeperiod "ex" the "name" is commented.
I use Nagios 3.4.3.
Any ideas what's wrong ?