From 9249af1c66010c19f631f376caad8516eb2d2593 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Sat, 6 Jul 2013 20:46:09 +0200 Subject: [PATCH] log an error to debug when check_command not found on service execution refs #4391 --- 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 58600d332..f6ea3092f 100644 --- a/lib/icinga/service-check.cpp +++ b/lib/icinga/service-check.cpp @@ -698,8 +698,10 @@ void Service::ExecuteCheck(void) try { CheckCommand::Ptr command = GetCheckCommand(); - if (!command) + if (!command) { + Log(LogDebug, "icinga", "No check_command found for service '" + GetName() + "'. Skipping execution."); return; + } result = command->Execute(GetSelf()); } catch (const std::exception& ex) { -- 2.40.0