#9513 Fixed storm_protection with snmp_lock

This commit is contained in:
Daniel Maya 2022-11-03 16:17:12 +01:00
parent 8097001b19
commit fdb4540fd0
1 changed files with 3 additions and 1 deletions

View File

@ -147,7 +147,9 @@ sub data_producer ($) {
# Reset storm protection counters
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;
%AGENTS = ();
}