Merge branch 'ent-9513-14183-snmp_storm_protection-no-funciona-correctamente' into 'develop'

Ent 9513 14183 snmp storm protection no funciona correctamente

See merge request artica/pandorafms!5247
This commit is contained in:
Daniel Rodriguez 2022-11-22 14:01:34 +00:00
commit 189afcd68a
1 changed files with 3 additions and 1 deletions

View File

@ -147,7 +147,9 @@ sub data_producer ($) {
# Reset storm protection counters # Reset storm protection counters
my $curr_time = time (); my $curr_time = time ();
if ($pa_config->{"__storm_ref__"} + $pa_config->{"snmp_storm_timeout"} < $curr_time) { if ($pa_config->{"__storm_ref__"} + $pa_config->{"snmp_storm_timeout"} < $curr_time
|| $pa_config->{'snmpconsole_lock'} == 1
) {
$pa_config->{"__storm_ref__"} = $curr_time; $pa_config->{"__storm_ref__"} = $curr_time;
%AGENTS = (); %AGENTS = ();
} }