From 05a81b84e1deef298c656a69f04b1091b3255ec3 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 17 Oct 2013 12:08:08 +0200 Subject: [PATCH] Fix: Check_source in ClassicUI is N/A Fixes #4893 --- lib/icinga/service-check.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/icinga/service-check.cpp b/lib/icinga/service-check.cpp index 476d0879b..df5c9eec1 100644 --- a/lib/icinga/service-check.cpp +++ b/lib/icinga/service-check.cpp @@ -475,7 +475,9 @@ void Service::ProcessCheckResult(const Dictionary::Ptr& cr, const String& author if (!cr->Contains("execution_end")) cr->Set("execution_end", now); - if (!cr->Contains("check_source")) + String check_source = cr->Get("check_source"); + + if (check_source.IsEmpty()) cr->Set("check_source", authority); bool reachable = IsReachable(); -- 2.40.0