log_window
This commit is contained in:
parent
83e7d5a701
commit
0fd95647ea
|
@ -449,10 +449,14 @@ export_threads 1
|
|||
|
||||
eventserver 0
|
||||
|
||||
# Event Server event window in seconds (3600 by default) (PANDORA FMS ENTERPRISE ONLY).
|
||||
# Correlated alerts, event window in seconds (3600 by default) (PANDORA FMS ENTERPRISE ONLY).
|
||||
|
||||
event_window 3600
|
||||
|
||||
# Correlated Alerts, log window in seconds (3600 by default) (PANDORA FMS ENTERPRISE ONLY).
|
||||
|
||||
log_window 3600
|
||||
|
||||
# If set to 1, an alert will not be fired if the last event it generated is in 'in-process' status.
|
||||
|
||||
event_inhibit_alerts 0
|
||||
|
|
|
@ -303,6 +303,7 @@ sub pandora_load_config {
|
|||
$pa_config->{'openstreetmaps_description'} = 0;
|
||||
$pa_config->{"eventserver"} = 1; # 4.0
|
||||
$pa_config->{"event_window"} = 3600; # 4.0
|
||||
$pa_config->{"log_window"} = 3600; # 7.741
|
||||
$pa_config->{"icmpserver"} = 0; # 4.0
|
||||
$pa_config->{"icmp_threads"} = 3; # 4.0
|
||||
$pa_config->{"snmpserver"} = 0; # 4.0
|
||||
|
@ -980,6 +981,9 @@ sub pandora_load_config {
|
|||
elsif ($parametro =~ m/^event_window\s+([0-9]*)/i) {
|
||||
$pa_config->{'event_window'}= clean_blank($1);
|
||||
}
|
||||
elsif ($parametro =~ m/^log_window\s+([0-9]*)/i) {
|
||||
$pa_config->{'log_window'}= clean_blank($1);
|
||||
}
|
||||
elsif ($parametro =~ m/^snmp_threads\s+([0-9]*)/i) {
|
||||
$pa_config->{'snmp_threads'}= clean_blank($1);
|
||||
}
|
||||
|
|
|
@ -827,9 +827,9 @@ sub enterprise_hook ($$) {
|
|||
my $output = eval { &$func (@args); };
|
||||
|
||||
# Discomment to debug.
|
||||
# if ($@) {
|
||||
# print STDERR $@;
|
||||
# }
|
||||
if ($@) {
|
||||
print STDERR $@;
|
||||
}
|
||||
|
||||
# Check for errors
|
||||
#return undef if ($@);
|
||||
|
|
Loading…
Reference in New Issue