From df729d551447f248f51232bb280d7f49c0e55cdd Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 6 Sep 2013 15:29:00 +0200 Subject: [PATCH] Only do flapping updates when services are in a hard state. --- lib/icinga/service-check.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/icinga/service-check.cpp b/lib/icinga/service-check.cpp index 74033c52c..0f4a172df 100644 --- a/lib/icinga/service-check.cpp +++ b/lib/icinga/service-check.cpp @@ -607,7 +607,8 @@ void Service::ProcessCheckResult(const Dictionary::Ptr& cr, const String& author bool was_flapping, is_flapping; was_flapping = IsFlapping(); - UpdateFlappingStatus(stateChange); + if (GetStateType() == StateTypeHard) + UpdateFlappingStatus(stateChange); is_flapping = IsFlapping(); olock.Unlock(); -- 2.40.0