]> granicus.if.org Git - icinga2/commitdiff
Only call UpdateNextCheck() for soft states
authorMichael Friedrich <michael.friedrich@netways.de>
Tue, 15 Mar 2016 13:02:19 +0000 (14:02 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 20 Apr 2016 08:00:09 +0000 (10:00 +0200)
refs #11336

lib/icinga/checkable-check.cpp

index c5f3b605b08ee93998d60fcedfa6714fa8af2196..6a3cd178b4bc01f638a2eb2168d81561b2131edd 100644 (file)
@@ -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