mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
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())) {
|
||||
SetStateType(StateTypeHard); // NOT-OK -> HARD OK
|
||||
|
||||
if (!IsStateOK(old_state))
|
||||
if (old_stateType == StateTypeHard && !IsStateOK(old_state))
|
||||
recovery = true;
|
||||
|
||||
ResetNotificationNumbers();
|
||||
|
Loading…
x
Reference in New Issue
Block a user