Timeperiod Assistance
Posted: Fri Apr 11, 2014 9:02 am
Hello,
My goal is to have notifications for a specific host be sent out only during the hours of 6AM est and 5pm est, Monday through Friday. All other hours will not send any alerts. I have defined the following timeperiod in timeperiods.cfg
In my linux.cfg, for the host, it looks as follows:
As I was going through the configs accumulating the information, I may have realized my error. Do I need to define the notification_period for each specific service that is being checked?
Thanks.
My goal is to have notifications for a specific host be sent out only during the hours of 6AM est and 5pm est, Monday through Friday. All other hours will not send any alerts. I have defined the following timeperiod in timeperiods.cfg
Code: Select all
define timeperiod{
timeperiod_name test-uptime
alias Uptime Hours
use us-holidays ; Get holiday exceptions from other timeperiod
monday 06:01-17:00
tuesday 06:01-17:00
wednesday 06:01-17:00
thursday 06:01-17:00
friday 06:01-17:00
}Code: Select all
define host{
use linux-server
host_name testserver
alias teserver
address x.x.x.x
hostgroups linux
max_check_attempts 2
notification_interval 30
notification_period test-uptime
hostgroups testgroup
contacts blah
}
Thanks.