Page 1 of 1

notification interval bug

Posted: Thu Jul 19, 2012 10:55 am
by amangb
I read on the Nagios doc (http://nagios.sourceforge.net/docs/3_0/ ... tions.html) that if you set the notification_interval to 0, only one notification will be sent. But that doesn't seem to be the case. With the same host definition as below, it would work if I set notification_interval to 1 but not 0. For 1 it will send me notifications every minute, but for zero none. I want to be able to send one notification when the host is down and one when it is back up again. Or 1 notification per 24 hrs. I set the notification_interval to 1440 (24hrs) but it will send the notification if the host is down for 24hrs. Any ideas??

define host{
name public
check_period 24x7
initial_state u
check_interval 2
retain_nonstatus_information 0
retry_interval 1
max_check_attempts 10
notification_period 24x7
notifications_enabled 1
notification_interval 0
notification_options d,r
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
register 0 ; DONT REGISTER THIS - ITS A TEMPLATE
}

Re: notification interval bug

Posted: Thu Jul 19, 2012 2:17 pm
by agriffin
It sounds like this is either a documentation error or a Nagios bug. The place to go from here is filing a bug report on the Nagios tracker.