From 87a9ce2d46942ed8afd0d0cc404122f4d1cd240c Mon Sep 17 00:00:00 2001 From: "marcos.alconada" Date: Mon, 3 Jun 2019 10:56:16 +0200 Subject: [PATCH] changes of core.pm reverted --- pandora_server/lib/PandoraFMS/Core.pm | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 536669afd2..4d5dcdd904 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -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) {