mirror of https://github.com/Icinga/icinga2.git
Only do flapping updates when services are in a hard state.
This commit is contained in:
parent
ad5f96b190
commit
df729d5514
|
@ -607,7 +607,8 @@ void Service::ProcessCheckResult(const Dictionary::Ptr& cr, const String& author
|
||||||
bool was_flapping, is_flapping;
|
bool was_flapping, is_flapping;
|
||||||
|
|
||||||
was_flapping = IsFlapping();
|
was_flapping = IsFlapping();
|
||||||
UpdateFlappingStatus(stateChange);
|
if (GetStateType() == StateTypeHard)
|
||||||
|
UpdateFlappingStatus(stateChange);
|
||||||
is_flapping = IsFlapping();
|
is_flapping = IsFlapping();
|
||||||
|
|
||||||
olock.Unlock();
|
olock.Unlock();
|
||||||
|
|
Loading…
Reference in New Issue