From: Gunnar Beutner Date: Mon, 24 Oct 2016 06:38:58 +0000 (+0200) Subject: Don't generate 'UNKNOWN' results when the endpoint's log is still being resynced X-Git-Tag: v2.6.0~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5fdc8743776cc1f25d49bef223da750ec9d8f374;p=icinga2 Don't generate 'UNKNOWN' results when the endpoint's log is still being resynced fixes #12844 --- diff --git a/lib/icinga/checkable-check.cpp b/lib/icinga/checkable-check.cpp index 81679a6cd..372829b4c 100644 --- a/lib/icinga/checkable-check.cpp +++ b/lib/icinga/checkable-check.cpp @@ -476,7 +476,7 @@ void Checkable::ExecuteCheck(void) a check result from the remote instance. The check will be re-scheduled using the proper check interval once we've received a check result. */ SetNextCheck(Utility::GetTime() + GetCheckCommand()->GetTimeout() + 30); - } else if (Application::GetInstance()->GetStartTime() < Utility::GetTime() - 300) { + } else if (!endpoint->GetSyncing() && Application::GetInstance()->GetStartTime() < Utility::GetTime() - 300) { /* fail to perform check on unconnected endpoint */ cr->SetState(ServiceUnknown);