Reschedule service dependencies on soft state changes.

Fixes #3574
This commit is contained in:
Gunnar Beutner 2013-01-25 16:21:21 +01:00
parent 2f98f56119
commit 8d8d1d8cd8
1 changed files with 10 additions and 0 deletions

View File

@ -515,6 +515,16 @@ void Service::ApplyCheckResult(const Dictionary::Ptr& cr)
SetAcknowledgement(AcknowledgementNone);
SetAcknowledgementExpiry(0);
}
/* reschedule dependencies */
String svc;
BOOST_FOREACH(tie(tuples::ignore, svc), GetDependencies()) {
if (!Service::Exists(svc))
continue;
Service::Ptr service = Service::GetByName(svc);
service->SetNextCheck(Utility::GetTime());
}
}
}