]> granicus.if.org Git - icinga2/commitdiff
Don't generate 'UNKNOWN' results when the endpoint's log is still being resynced
authorGunnar Beutner <gunnar.beutner@icinga.com>
Mon, 24 Oct 2016 06:38:58 +0000 (08:38 +0200)
committerGunnar Beutner <gunnar.beutner@icinga.com>
Mon, 24 Oct 2016 06:38:58 +0000 (08:38 +0200)
fixes #12844

lib/icinga/checkable-check.cpp

index 81679a6cd6253c84e2db084a9a9ad6fa16333aec..372829b4c427c0afedd2d010a5ef163be47f803a 100644 (file)
@@ -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);