Modified events protection checking to protect secundary servers too

This commit is contained in:
fermin831 2017-10-11 11:05:55 +02:00
parent 6bc0949942
commit 4dfd000ba0
1 changed files with 3 additions and 3 deletions

View File

@ -314,9 +314,6 @@ sub pandora_server_tasks ($) {
# Check if an autodisabled agent needs to be autodisable
pandora_disable_autodisable_agents ($pa_config, $dbh);
# Set event storm protection
pandora_set_event_storm_protection (pandora_get_tconfig_token ($dbh, 'event_storm_protection', 0));
}
# TASKS EXECUTED EVERY 60 SECONDS (High latency tasks)
@ -355,6 +352,9 @@ sub pandora_server_tasks ($) {
# Rotate Log File
if (($counter % 30) == 0) {
pandora_rotate_logfile($pa_config);
# Set event storm protection
pandora_set_event_storm_protection (pandora_get_tconfig_token ($dbh, 'event_storm_protection', 0));
}
# Pandora self monitoring
if (defined($pa_config->{"self_monitoring"})