From: Gunnar Beutner Date: Sun, 27 Jan 2013 11:13:45 +0000 (+0100) Subject: Reschedule services after receiving passive check results. X-Git-Tag: v0.0.2~642 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a77aa596a8ba7acd6c15d0833b80839a65b2d143;p=icinga2 Reschedule services after receiving passive check results. --- diff --git a/lib/icinga/externalcommand.cpp b/lib/icinga/externalcommand.cpp index c82846a53..04e18dd30 100644 --- a/lib/icinga/externalcommand.cpp +++ b/lib/icinga/externalcommand.cpp @@ -133,6 +133,11 @@ void ExternalCommand::ProcessServiceCheckResult(double time, const vectorProcessCheckResult(result); + + /* Reschedule the next check. The side effect of this is that for as long + * as we receive passive results for a service we won't execute any + * active checks. */ + service->UpdateNextCheck(); } void ExternalCommand::ScheduleSvcCheck(double time, const vector& arguments)