changes of core.pm reverted
This commit is contained in:
parent
86dabc6476
commit
87a9ce2d46
|
@ -360,16 +360,13 @@ sub pandora_generate_alerts ($$$$$$$$;$$$) {
|
||||||
my ($pa_config, $data, $status, $agent, $module, $utimestamp, $dbh, $timestamp, $extra_macros, $last_data_value, $alert_type) = @_;
|
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
|
# No alerts when event storm protection is enabled
|
||||||
if(isnumber $EventStormProtection ){
|
|
||||||
if ($EventStormProtection == 1)
|
if ($EventStormProtection == 1)
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
$EventStormProtection = 0;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Warmup interval for alerts.
|
# Warmup interval for alerts.
|
||||||
if ($pa_config->{'warmup_alert_on'} == 1) {
|
if ($pa_config->{'warmup_alert_on'} == 1) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue