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:
commit
189afcd68a
|
@ -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 = ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue