Host check intervals not honoured since 4.0.0
Posted: Wed Apr 13, 2016 4:22 am
Hi,
I have a host template defined like this:
And then some hosts using this template. The hosts also have a few simple services defined.
In this case, whenever a host goes down, I would expect the host down HARD state to happen after ~5*12 minutes = ~1 hour. However, since nagios 4.0.0 (tested 4.0.7 and 4.1.1) it appears that when the host is unreachable, at each service check the host check is executed again, causing the host HARD state to be reached fairly quickly.
I can confirm that this worked fine on nagios 3.5.1. Is this a regression since 4.0.0? Or can I restore the behaviour with a configuration option?
I have a host template defined like this:
Code: Select all
define host {
name generic-host
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
notification_period 24x7
register 0
notification_interval 0
notification_options d,u,r
check_period 24x7
check_interval 5 ; Actively check the host every 5 minutes
retry_interval 5 ; Schedule host check retries at 5 minute intervals
max_check_attempts 12 ; Check each host 12 times before going to HARD state
passive_checks_enabled 1 ; Passive service checks are enabled/accepted
}
In this case, whenever a host goes down, I would expect the host down HARD state to happen after ~5*12 minutes = ~1 hour. However, since nagios 4.0.0 (tested 4.0.7 and 4.1.1) it appears that when the host is unreachable, at each service check the host check is executed again, causing the host HARD state to be reached fairly quickly.
I can confirm that this worked fine on nagios 3.5.1. Is this a regression since 4.0.0? Or can I restore the behaviour with a configuration option?