Added log message in case of agent plugin failure

This commit is contained in:
alejandro 2023-02-06 13:32:19 +01:00 committed by daniel
parent a1144ce7ab
commit d3c6a3e7dc
1 changed files with 1 additions and 0 deletions

View File

@ -3749,6 +3749,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 ();
}