Added log message in case of agent plugin failure
This commit is contained in:
parent
e1d550142c
commit
fe507b2530
|
@ -3741,6 +3741,7 @@ sub module_plugin ($) {
|
|||
|
||||
# Do not save the output if there was an error
|
||||
if ($? != 0) {
|
||||
log_message ('error', "plugin execution '". $command ."' exited with error code " . $?);
|
||||
return ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue