From: Gunnar Beutner Date: Thu, 6 Mar 2014 10:39:32 +0000 (+0100) Subject: Fix: Pending services are being checked with the retry interval. X-Git-Tag: v0.0.8~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e690cc7b8d78d9441172b21d0c6c350affce76a;p=icinga2 Fix: Pending services are being checked with the retry interval. Fixes #5716 --- diff --git a/lib/icinga/service-check.cpp b/lib/icinga/service-check.cpp index aad063b7b..dbff5908d 100644 --- a/lib/icinga/service-check.cpp +++ b/lib/icinga/service-check.cpp @@ -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