]> granicus.if.org Git - icinga2/commitdiff
Fix issue 5022
authorJordi van Scheijen <jordi.vanscheijen@solvinity.com>
Thu, 22 Jun 2017 10:31:32 +0000 (12:31 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 27 Sep 2018 05:52:37 +0000 (07:52 +0200)
lib/icinga/checkable-check.cpp

index 35c406d06c2d60f0675b27032b5f85ebecb9e25b..c836f07269bfe3a437fdfbd1abc908fe690f1b1d 100644 (file)
@@ -260,8 +260,13 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
                        if (parent.get() == this)
                                continue;
 
-                       ObjectLock olock(parent);
-                       parent->SetNextCheck(Utility::GetTime());
+                       if (!parent->GetEnableActiveChecks())
+                               continue;
+
+                       if (parent->GetNextCheck() >= now + parent->GetRetryInterval()) {
+                               ObjectLock olock(parent);
+                               parent->SetNextCheck(now);
+                       }
                }
        }