Notification count never resets -> escalations don't trigger
Posted: Fri Jul 13, 2018 11:20 am
I have set up a host escalation that triggers at the 3rd notification of a certain host. When the host was first defined the notification count started at 0. So the escalation was triggered 3 notifications later and worked perfectly. But after that problem was resolved and the host stabilized the notification stayed at 5 and never reset. Even 3 weeks later when we have another issue the escalation happens immediately rather than waiting till the "third" notification (because the notification count never reset after the last problem resolved). How do I get the notification count to zero out every time the host stabilizes in an up state? I want the notification to go to the default contact the first 2 notifications and escalate on the 3rd FOR EACH PROBLEM. These problems should be separated by the host reaching a hard-up state.
Code: Select all
define host {
host_name devopsTestVm
alias devopsTestVm
display_name devopsTestVm
address 10.87.63.91
parents
check_command check-host-alive
initial_state o
max_check_attempts 1
check_interval 1
retry_interval 1
active_checks_enabled 1
passive_checks_enabled 0
check_period 24x7
obsess_over_host 0
check_freshness 0
freshness_threshold 0
event_handler_enabled 0
low_flap_threshold 1
high_flap_threshold 5
flap_detection_enabled 0
flap_detection_options o,d,u
process_perf_data 0
retain_status_information 0
retain_nonstatus_information 0
contacts slack-test-1
notification_interval 1
first_notification_delay 5
notification_period 24x7
notification_options d,u,r,s
notifications_enabled 1
stalking_options
notes no notes
notes_url
action_url
icon_image
icon_image_alt
vrml_image
statusmap_image
}
define hostescalation {
host_name devopsTestVm
contacts slack-test-2
first_notification 3
last_notification 0
notification_interval 0
escalation_period 24x7
escalation_options d,u,r
}