mirror of https://github.com/Icinga/icinga2.git
parent
9e29a3f8a0
commit
8808e709c9
|
@ -180,13 +180,10 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
|
||||||
if (!old_cr) {
|
if (!old_cr) {
|
||||||
SetStateType(StateTypeHard);
|
SetStateType(StateTypeHard);
|
||||||
} else if (IsStateOK(cr->GetState())) {
|
} else if (IsStateOK(cr->GetState())) {
|
||||||
if (IsStateOK(old_state) && old_stateType == StateTypeSoft) {
|
SetStateType(StateTypeHard); // NOT-OK -> HARD OK
|
||||||
SetStateType(StateTypeHard); // SOFT OK -> HARD OK
|
|
||||||
recovery = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!IsStateOK(old_state))
|
if (!IsStateOK(old_state))
|
||||||
recovery = true; // NOT OK -> SOFT/HARD OK
|
recovery = true;
|
||||||
|
|
||||||
ResetNotificationNumbers();
|
ResetNotificationNumbers();
|
||||||
SaveLastState(ServiceOK, Utility::GetTime());
|
SaveLastState(ServiceOK, Utility::GetTime());
|
||||||
|
|
Loading…
Reference in New Issue