Added log message in case of agent plugin failure

This commit is contained in:
alejandro 2023-02-06 13:32:19 +01:00
parent e1d550142c
commit fe507b2530
1 changed files with 1 additions and 0 deletions

View File

@ -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 ();
}