From: Michael Friedrich Date: Tue, 15 Mar 2016 13:02:19 +0000 (+0100) Subject: Only call UpdateNextCheck() for soft states X-Git-Tag: v2.5.0~475 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a30cb86ca10bef7392a91b09cbb27be4e661881d;p=icinga2 Only call UpdateNextCheck() for soft states refs #11336 --- diff --git a/lib/icinga/checkable-check.cpp b/lib/icinga/checkable-check.cpp index c5f3b605b..6a3cd178b 100644 --- a/lib/icinga/checkable-check.cpp +++ b/lib/icinga/checkable-check.cpp @@ -326,7 +326,8 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig /* If there was a OK -> NOT-OK state change for actively scheduled checks, * update the next check time using the retry_interval. * Important: Add the cluster message origin. */ - UpdateNextCheck(origin); + if (GetStateType() == StateTypeSoft) + UpdateNextCheck(origin); } else { /* Reschedule the next check for passive check results. The side effect of * this is that for as long as we receive passive results for a service we