mirror of https://github.com/Icinga/icinga2.git
Fix: Pending services are being checked with the retry interval.
Fixes #5716
This commit is contained in:
parent
f8a2ddc464
commit
7e690cc7b8
|
@ -264,7 +264,9 @@ void Service::ProcessCheckResult(const CheckResult::Ptr& cr, const String& autho
|
|||
|
||||
long attempt;
|
||||
|
||||
if (cr->GetState() == StateOK) {
|
||||
if (!old_cr) {
|
||||
SetStateType(StateTypeHard);
|
||||
} else if (cr->GetState() == StateOK) {
|
||||
if (old_state == StateOK && old_stateType == StateTypeSoft)
|
||||
SetStateType(StateTypeHard); // SOFT OK -> HARD OK
|
||||
|
||||
|
|
Loading…
Reference in New Issue