mirror of https://github.com/Icinga/icinga2.git
log an error to debug when check_command not found on service execution
refs #4391
This commit is contained in:
parent
80f899783a
commit
9249af1c66
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue