[icinga-checkins] icinga.org: icinga2/feature/threadpool-bug-5050: Use normal check interval for services which haven't been checked yet.

git at icinga.org git at icinga.org
Fri Nov 15 12:57:09 CET 2013


Module: icinga2
Branch: feature/threadpool-bug-5050
Commit: e2a7cb32e529f76b773ea979c1e918e2daa87479
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=e2a7cb32e529f76b773ea979c1e918e2daa87479

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Fri Nov 15 12:50:23 2013 +0100

Use normal check interval for services which haven't been checked yet.

Refs #5050

---

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

diff --git a/lib/icinga/service-check.cpp b/lib/icinga/service-check.cpp
index 45e98fc..796a2bc 100644
--- a/lib/icinga/service-check.cpp
+++ b/lib/icinga/service-check.cpp
@@ -108,7 +108,7 @@ void Service::UpdateNextCheck(void)
 
 	double interval;
 
-	if (GetStateType() == StateTypeSoft)
+	if (GetStateType() == StateTypeSoft && GetLastCheckResult() != NULL)
 		interval = GetRetryInterval();
 	else
 		interval = GetCheckInterval();





More information about the icinga-checkins mailing list