]> granicus.if.org Git - icinga2/commitdiff
Use check interval (rather than retry interval) when rescheduling passive checks.
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 28 Jan 2013 07:31:29 +0000 (08:31 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 28 Jan 2013 07:31:29 +0000 (08:31 +0100)
lib/icinga/externalcommand.cpp

index 04e18dd30127d501b9e5caac8c41f52eb17639ec..92db8a0a3c67b41d4c47e734af95cf0a4727ba9e 100644 (file)
@@ -137,7 +137,7 @@ void ExternalCommand::ProcessServiceCheckResult(double time, const vector<String
        /* 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();
+       service->SetNextCheck(Utility::GetTime() + service->GetCheckInterval());
 }
 
 void ExternalCommand::ScheduleSvcCheck(double time, const vector<String>& arguments)