Merge branch 'ent-7011-nexcon-se-sigue-generando-el-evento-de-alerta-cesada-aunque-esten-deshabilitados-los-eventos-de-la-alera' into 'develop'
Avoid events while ceasing alerts See merge request artica/pandorafms!3827
This commit is contained in:
commit
0f5f41e97f
|
@ -682,6 +682,11 @@ sub pandora_process_alert ($$$$$$$$;$$) {
|
|||
$alert->{'warning_instructions'} = $warning_instructions;
|
||||
$alert->{'unknown_instructions'} = $unknown_instructions;
|
||||
|
||||
# Generate event only if not quieted by module or agent.
|
||||
return if ((ref($module) eq 'HASH' && $module->{'quiet'} != "0")
|
||||
|| (ref($agent) eq 'HASH' && $agent->{'quiet'} != "0")
|
||||
|| (ref($alert) eq 'HASH' && $alert->{'disable_event'} != "0"));
|
||||
|
||||
# Generate an event
|
||||
if ($table eq 'tevent_alert') {
|
||||
pandora_event ($pa_config, "Alert ceased (" .
|
||||
|
|
Loading…
Reference in New Issue