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

git at icinga.org git at icinga.org
Mon Oct 24 08:45:21 CEST 2016


Module: icinga2
Branch: master
Commit: 5fdc8743776cc1f25d49bef223da750ec9d8f374
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=5fdc8743776cc1f25d49bef223da750ec9d8f374

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 81679a6..372829b 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);
 



More information about the icinga-checkins mailing list