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
cd1b2cdddd
|
@ -183,7 +183,7 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
|
|||
if (IsStateOK(cr->GetState())) {
|
||||
SetStateType(StateTypeHard); // NOT-OK -> HARD OK
|
||||
|
||||
if (!IsStateOK(old_state))
|
||||
if (old_stateType == StateTypeHard && !IsStateOK(old_state))
|
||||
recovery = true;
|
||||
|
||||
ResetNotificationNumbers();
|
||||
|
|
Loading…
Reference in New Issue