From: Gunnar Beutner Date: Fri, 6 Sep 2013 13:29:00 +0000 (+0200) Subject: Only do flapping updates when services are in a hard state. X-Git-Tag: v0.0.3~593 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df729d551447f248f51232bb280d7f49c0e55cdd;p=icinga2 Only do flapping updates when services are in a hard state. --- 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();