still having difficulty with TIMEPERIODS
Posted: Sat Aug 27, 2011 6:36 pm
I've been trying all combinations, and can't get our timeperiods straight. Even when distilled to the most simplified test scenario, no notifications get sent. Would someone be willing to look at the definitions below and tell me why when I shut off the service (stop Apache), and a 3-rd strike check is recorded in the webgui, no email is sent out? I've checked the notification history for the service, and it never says it even attempted to send one.
thanks in advance,
mtf
thanks in advance,
mtf
Code: Select all
define service{
use generic-service ; Inherit default values from a template
host_name server_one
service_description Support Ticketing System
check_command check_http!-S -p 80 -u /index.php -N
notification_period test_hours
contact_groups test_group
check_interval 1
notification_options c,r,f
}
define timeperiod{
name test_hours
timeperiod_name test_hours
alias test_hours
use workhours,first_weekend,second_weekend,third_weekend,fourth_weekend,fifth_weekend,dav_monday,dav_tuesday,dav_wednesday,dav_thursday,24x7
}
define contactgroup{
contactgroup_name test_group
alias test_group
members carl
}
define contact{
contact_name carl ; Short name of user
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias Carl Weathers ; Full name of user
email [email protected]
# service_notification_options u,c,r,f,as
service_notification_options w,c,r,f
host_notification_period 24x7
service_notification_period 24x7
}