]> granicus.if.org Git - icinga2/commitdiff
Fix that checks with command_endpoint don't return any check results 6343/head
authorNoah Hilverling <noah@hilverling.com>
Tue, 29 May 2018 11:51:34 +0000 (13:51 +0200)
committerNoah Hilverling <noah@hilverling.com>
Tue, 29 May 2018 11:51:34 +0000 (13:51 +0200)
fixes #6337

lib/icinga/checkable-check.cpp

index 76b2cc37e8bca6de233e52649d30467b240f08e3..719611abad9d9be282a5fe0280a9d6c2f0bf4424 100644 (file)
@@ -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);