mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Merge branch 'ent-4041-7980-bug-parametro-event_storm_protection' into 'develop'
Variability event_storm_protection check is added with empty data See merge request artica/pandorafms!2428
This commit is contained in:
commit
45c58a7c72
@ -270,7 +270,7 @@ function config_update_config()
|
||||
$error_update[] = __('Referer security');
|
||||
}
|
||||
|
||||
if (!config_update_value('event_storm_protection', get_parameter('event_storm_protection'))) {
|
||||
if (!config_update_value('event_storm_protection', get_parameter('event_storm_protection', 0))) {
|
||||
$error_update[] = __('Event storm protection');
|
||||
}
|
||||
|
||||
|
@ -360,9 +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 ($EventStormProtection == 1) {
|
||||
|
||||
if ($EventStormProtection == 1) {
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
# Warmup interval for alerts.
|
||||
if ($pa_config->{'warmup_alert_on'} == 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user