Merge branch 'ent-11448-comportamiento-extrano-tras-cambios-del-ticket-https-brutus-artica-es-8081-artica' into 'develop'

Ent-11448-comportamiento-extrano-tras-cambios-del-ticket-https-brutus-artica-es-8081-artica

See merge request artica/pandorafms!6124
This commit is contained in:
Daniel Rodriguez 2023-07-18 10:41:22 +00:00
commit 3482ef7d8e
1 changed files with 5 additions and 1 deletions

View File

@ -1041,7 +1041,11 @@ sub pandora_execute_alert {
$monitoring_event_custom_data = $custom_data;
}
if($alert_mode == FIRED_ALERT || ($alert_mode == RECOVERED_ALERT && $action->{'recovered'} == 0)) {
pandora_execute_action ($pa_config, $data, $agent, $alert, $alert_mode, $action, $module, $dbh, $timestamp, $extra_macros, $monitoring_event_custom_data);
}else{
logger ($pa_config, "Skipping recover action " . safe_output($action->{'name'}) . " for alert '" . safe_output($alert->{'name'}) . "' module '" . safe_output($module->{'nombre'}) . "'.", 10);
}
if($alert_mode == RECOVERED_ALERT) {
# Reset action thresholds and set recovered