From d8b400dc174bfdd01fd86d05788b515901f96025 Mon Sep 17 00:00:00 2001 From: Noah Hilverling Date: Tue, 29 May 2018 13:51:34 +0200 Subject: [PATCH] Fix that checks with command_endpoint don't return any check results fixes #6337 --- lib/icinga/checkable-check.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/icinga/checkable-check.cpp b/lib/icinga/checkable-check.cpp index 76b2cc37e..719611aba 100644 --- a/lib/icinga/checkable-check.cpp +++ b/lib/icinga/checkable-check.cpp @@ -107,7 +107,7 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig m_CheckRunning = false; } - if (!cr || !IsActive()) + if (!cr) return; double now = Utility::GetTime(); @@ -147,6 +147,9 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig } + if (!IsActive()) + return; + bool reachable = IsReachable(); bool notification_reachable = IsReachable(DependencyNotification);