Bug fix: Continue executing checks even if the first matching service is disabled.

This commit is contained in:
Gunnar Beutner 2013-01-24 11:07:37 +01:00
parent db6c89bc58
commit 7447d340cc

View File

@ -74,11 +74,13 @@ void CheckerComponent::CheckTimerHandler(void)
* for it and this is not a forced check */ * for it and this is not a forced check */
if (!service->GetEnableChecks()) { if (!service->GetEnableChecks()) {
if (!service->GetForceNextCheck()) { if (!service->GetForceNextCheck()) {
Logger::Write(LogDebug, "checker", "Ignoring service check for disabled service: " + service->GetName());
service->UpdateNextCheck(); service->UpdateNextCheck();
idx.insert(service); idx.insert(service);
return; continue;
} }
service->SetForceNextCheck(false); service->SetForceNextCheck(false);