mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
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;
|
long attempt;
|
||||||
|
|
||||||
if (cr->GetState() == StateOK) {
|
if (!old_cr) {
|
||||||
|
SetStateType(StateTypeHard);
|
||||||
|
} else if (cr->GetState() == StateOK) {
|
||||||
if (old_state == StateOK && old_stateType == StateTypeSoft)
|
if (old_state == StateOK && old_stateType == StateTypeSoft)
|
||||||
SetStateType(StateTypeHard); // SOFT OK -> HARD OK
|
SetStateType(StateTypeHard); // SOFT OK -> HARD OK
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user