From 7e690cc7b8d78d9441172b21d0c6c350affce76a Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 6 Mar 2014 11:39:32 +0100 Subject: [PATCH] Fix: Pending services are being checked with the retry interval. Fixes #5716 --- lib/icinga/service-check.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.40.0