From: Michael Friedrich Date: Sat, 6 Jul 2013 18:46:09 +0000 (+0200) Subject: log an error to debug when check_command not found on service execution X-Git-Tag: v0.0.3~880 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9249af1c66010c19f631f376caad8516eb2d2593;p=icinga2 log an error to debug when check_command not found on service execution refs #4391 --- 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) {