Add the dynamic_updates configuration option with examples.

This commit is contained in:
Ramon Novoa 2017-03-01 14:58:20 +01:00
parent b5a61c8d12
commit ac3f45e5d3
3 changed files with 12 additions and 0 deletions

View File

@ -548,3 +548,7 @@ warmup_unknown_interval 300
# Directory were additional enc files for the XML parser are located. # Directory were additional enc files for the XML parser are located.
enc_dir /usr/share/pandora_server/enc/ 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

View File

@ -522,3 +522,7 @@ warmup_unknown_interval 300
# Directory were additional enc files for the XML parser are located. # Directory were additional enc files for the XML parser are located.
enc_dir /usr/share/pandora_server/enc/ 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

View File

@ -281,6 +281,7 @@ sub pandora_load_config {
$pa_config->{"sync_port"} = '41121'; # 7.0 $pa_config->{"sync_port"} = '41121'; # 7.0
$pa_config->{"sync_retries"} = 2; # 7.0 $pa_config->{"sync_retries"} = 2; # 7.0
$pa_config->{"sync_timeout"} = 5; # 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. # Internal MTA for alerts, each server need its own config.
$pa_config->{"mta_address"} = '127.0.0.1'; # Introduced on 2.0 $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) { elsif ($parametro =~ m/^sync_retries\s+([0-9]*)/i) {
$pa_config->{'sync_retries'}= clean_blank($1); $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 # } # end of loop for parameter #
# Set to RDBMS' standard port # Set to RDBMS' standard port