From 4585a404d6d5793f2695f487e910d08cede9e98e Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 5 Mar 2020 15:42:07 +0100 Subject: [PATCH] Checkable#ExecuteCheck(): set #last_check_started to now before #UpdateNextCheck() refs #7888 --- lib/icinga/checkable-check.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/icinga/checkable-check.cpp b/lib/icinga/checkable-check.cpp index 68361fe17..ca5b7ba71 100644 --- a/lib/icinga/checkable-check.cpp +++ b/lib/icinga/checkable-check.cpp @@ -514,6 +514,8 @@ void Checkable::ExecuteCheck() double scheduled_start = GetNextCheck(); double before_check = Utility::GetTime(); + SetLastCheckStarted(Utility::GetTime()); + /* This calls SetNextCheck() which updates the CheckerComponent's idle/pending * queues and ensures that checks are not fired multiple times. ProcessCheckResult() * is called too late. See #6421.