changes of core.pm reverted

This commit is contained in:
marcos.alconada 2019-06-03 10:56:16 +02:00
parent 86dabc6476
commit 87a9ce2d46
1 changed files with 5 additions and 8 deletions

View File

@ -360,15 +360,12 @@ sub pandora_generate_alerts ($$$$$$$$;$$$) {
my ($pa_config, $data, $status, $agent, $module, $utimestamp, $dbh, $timestamp, $extra_macros, $last_data_value, $alert_type) = @_;
# No alerts when event storm protection is enabled
if(isnumber $EventStormProtection ){
if ($EventStormProtection == 1)
{
if ($EventStormProtection == 1)
{
return;
}
}else{
$EventStormProtection = 0;
return;
}
}
# Warmup interval for alerts.
if ($pa_config->{'warmup_alert_on'} == 1) {