[icinga-checkins] icinga.org: icinga2/support/2.5: Don't generate 'UNKNOWN' results when the endpoint's log is still being resynced

git at icinga.org git at icinga.org
Thu Nov 17 13:51:08 CET 2016


Module: icinga2
Branch: support/2.5
Commit: 0342197ab237d2e16332c6a3ecf7d03bba8de8cb
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=0342197ab237d2e16332c6a3ecf7d03bba8de8cb

Author: Gunnar Beutner <gunnar.beutner at icinga.com>
Date:   Mon Oct 24 08:38:58 2016 +0200

Don't generate 'UNKNOWN' results when the endpoint's log is still being resynced

fixes #12844

---

 lib/icinga/checkable-check.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/icinga/checkable-check.cpp b/lib/icinga/checkable-check.cpp
index 3c95727..913b3a7 100644
--- a/lib/icinga/checkable-check.cpp
+++ b/lib/icinga/checkable-check.cpp
@@ -475,7 +475,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);
 



More information about the icinga-checkins mailing list