Add the dynamic_updates configuration option with examples.
This commit is contained in:
parent
b5a61c8d12
commit
ac3f45e5d3
|
@ -548,3 +548,7 @@ warmup_unknown_interval 300
|
|||
# Directory were additional enc files for the XML parser are located.
|
||||
enc_dir /usr/share/pandora_server/enc/
|
||||
|
||||
# The number of times dynamic_min and dynamic_max will be recalculated per dynamic_interval.
|
||||
# Go to http://wiki.pandorafms.com/ for more information.
|
||||
dynamic_updates 5
|
||||
|
||||
|
|
|
@ -522,3 +522,7 @@ warmup_unknown_interval 300
|
|||
# Directory were additional enc files for the XML parser are located.
|
||||
enc_dir /usr/share/pandora_server/enc/
|
||||
|
||||
# The number of times dynamic_min and dynamic_max will be recalculated per dynamic_interval.
|
||||
# Go to http://wiki.pandorafms.com/ for more information.
|
||||
dynamic_updates 5
|
||||
|
||||
|
|
|
@ -281,6 +281,7 @@ sub pandora_load_config {
|
|||
$pa_config->{"sync_port"} = '41121'; # 7.0
|
||||
$pa_config->{"sync_retries"} = 2; # 7.0
|
||||
$pa_config->{"sync_timeout"} = 5; # 7.0
|
||||
$pa_config->{"dynamic_updates"} = 5; # 7.0
|
||||
|
||||
# Internal MTA for alerts, each server need its own config.
|
||||
$pa_config->{"mta_address"} = '127.0.0.1'; # Introduced on 2.0
|
||||
|
@ -1008,6 +1009,9 @@ sub pandora_load_config {
|
|||
elsif ($parametro =~ m/^sync_retries\s+([0-9]*)/i) {
|
||||
$pa_config->{'sync_retries'}= clean_blank($1);
|
||||
}
|
||||
elsif ($parametro =~ m/^dynamic_updates\s+([0-9]*)/i) {
|
||||
$pa_config->{'dynamic_updates'}= clean_blank($1);
|
||||
}
|
||||
} # end of loop for parameter #
|
||||
|
||||
# Set to RDBMS' standard port
|
||||
|
|
Loading…
Reference in New Issue