Log(LogInformation, "icinga", "Rescheduling next check for host '" + arguments[0] + "'");
+ if (planned_check < Utility::GetTime())
+ planned_check = Utility::GetTime();
+
{
ObjectLock olock(hc);
Log(LogInformation, "icinga", "Rescheduling next check for service '" + arguments[1] + "'");
+ if (planned_check < Utility::GetTime())
+ planned_check = Utility::GetTime();
+
{
ObjectLock olock(service);
Host::Ptr host = Host::GetByName(arguments[0]);
+ if (planned_check < Utility::GetTime())
+ planned_check = Utility::GetTime();
+
BOOST_FOREACH(const Service::Ptr& service, host->GetServices()) {
if (planned_check > service->GetNextCheck()) {
Log(LogInformation, "icinga", "Ignoring reschedule request for service '" +