Merge branch 'ent-7974-timeout-en-ejecuciones-de-alertas' into 'develop'

Lower the verbosity of alert timeout messages.

See merge request artica/pandorafms!4654
This commit is contained in:
Daniel Rodriguez 2022-02-02 14:05:47 +00:00
commit 93681fd58f
1 changed files with 1 additions and 1 deletions

View File

@ -1413,7 +1413,7 @@ sub pandora_execute_action ($$$$$$$$$;$$) {
my $return_code = ($? >> 8) & 0xff;
logger($pa_config, "Command '$command_timeout' for action '" . safe_output($action->{'name'}) . "' alert '". safe_output($alert->{'name'}) . "' agent '" . (defined ($agent) ? safe_output($agent->{'alias'}) : 'N/A') . "' returned with errorlevel " . $return_code, 8);
if ($return_code != 0) {
logger ($pa_config, "Action '" . safe_output($action->{'name'}) . "' alert '" . safe_output($alert->{'name'}) . "' agent '" . (defined ($agent) ? safe_output($agent->{'alias'}) : 'N/A') . "' exceeded the global alert timeout " . $pa_config->{'global_alert_timeout'} . " seconds" , 8);
logger ($pa_config, "Action '" . safe_output($action->{'name'}) . "' alert '" . safe_output($alert->{'name'}) . "' agent '" . (defined ($agent) ? safe_output($agent->{'alias'}) : 'N/A') . "' exceeded the global alert timeout " . $pa_config->{'global_alert_timeout'} . " seconds" , 3);
}
}
};