From 0a14846dbb9a4d2744b0891593cca3c49de5cfd3 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 20 Jun 2024 18:09:54 +0200 Subject: [PATCH] WIP --- lib/icinga/checkable-check.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/icinga/checkable-check.cpp b/lib/icinga/checkable-check.cpp index 3f288fb757b..e51014e0754 100644 --- a/lib/icinga/checkable-check.cpp +++ b/lib/icinga/checkable-check.cpp @@ -556,11 +556,11 @@ void Checkable::ExecuteCheck() SetLastCheckStarted(Utility::GetTime()); - /* This calls SetNextCheck() which updates the CheckerComponent's idle/pending + /* This calls SetNextCheck() for a later update of the CheckerComponent's idle/pending * queues and ensures that checks are not fired multiple times. ProcessCheckResult() * is called too late. See #6421. */ - UpdateNextCheck(); + UpdateNextCheck(nullptr, true); bool reachable = IsReachable(); @@ -629,7 +629,7 @@ void Checkable::ExecuteCheck() * 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); + SetNextCheck(Utility::GetTime() + GetCheckCommand()->GetTimeout() + 30, true); /* * Let the user know that there was a problem with the check if