mirror of https://github.com/Icinga/icinga2.git
Fix that recovery notifications are sent in SOFT NOT-OK states
fixes #12517
This commit is contained in:
parent
aba62ec0b3
commit
ed81373827
|
@ -183,7 +183,7 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
|
||||||
if (IsStateOK(cr->GetState())) {
|
if (IsStateOK(cr->GetState())) {
|
||||||
SetStateType(StateTypeHard); // NOT-OK -> HARD OK
|
SetStateType(StateTypeHard); // NOT-OK -> HARD OK
|
||||||
|
|
||||||
if (!IsStateOK(old_state))
|
if (old_stateType == StateTypeHard && !IsStateOK(old_state))
|
||||||
recovery = true;
|
recovery = true;
|
||||||
|
|
||||||
ResetNotificationNumbers();
|
ResetNotificationNumbers();
|
||||||
|
|
Loading…
Reference in New Issue