mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 15:44:11 +02:00
parent
a098fe804b
commit
ec92309349
@ -264,12 +264,14 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
|
|||||||
long attempt = 1;
|
long attempt = 1;
|
||||||
|
|
||||||
if (!old_cr) {
|
if (!old_cr) {
|
||||||
|
recovery = false;
|
||||||
SetStateType(StateTypeHard);
|
SetStateType(StateTypeHard);
|
||||||
} else if (cr->GetState() == ServiceOK) {
|
} else if (cr->GetState() == ServiceOK) {
|
||||||
if (old_state == ServiceOK && old_stateType == StateTypeSoft)
|
if (old_state == ServiceOK && old_stateType == StateTypeSoft) {
|
||||||
SetStateType(StateTypeHard); // SOFT OK -> HARD OK
|
SetStateType(StateTypeHard); // SOFT OK -> HARD OK
|
||||||
|
|
||||||
recovery = true;
|
recovery = true;
|
||||||
|
}
|
||||||
|
|
||||||
ResetNotificationNumbers();
|
ResetNotificationNumbers();
|
||||||
SetLastStateOK(Utility::GetTime());
|
SetLastStateOK(Utility::GetTime());
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user