]> granicus.if.org Git - icinga2/commitdiff
log an error to debug when check_command not found on service execution
authorMichael Friedrich <Michael.Friedrich@netways.de>
Sat, 6 Jul 2013 18:46:09 +0000 (20:46 +0200)
committerMichael Friedrich <Michael.Friedrich@netways.de>
Sat, 6 Jul 2013 18:46:09 +0000 (20:46 +0200)
refs #4391

lib/icinga/service-check.cpp

index 58600d3324709dde299e060bc73c373934af61cd..f6ea3092f015ebb004136e26a23ef2d44f76de57 100644 (file)
@@ -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) {