diff --git a/pandora_agents/unix/pandora_agent b/pandora_agents/unix/pandora_agent old mode 100644 new mode 100755 diff --git a/pandora_agents/unix/pandora_agent_installer b/pandora_agents/unix/pandora_agent_installer old mode 100644 new mode 100755 diff --git a/pandora_server/conf/pandora_server.conf.new b/pandora_server/conf/pandora_server.conf.new index 464bd5aec6..a9909034c8 100644 --- a/pandora_server/conf/pandora_server.conf.new +++ b/pandora_server/conf/pandora_server.conf.new @@ -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 + diff --git a/pandora_server/conf/pandora_server.conf.windows b/pandora_server/conf/pandora_server.conf.windows index c6408ae903..3caa9beb00 100644 --- a/pandora_server/conf/pandora_server.conf.windows +++ b/pandora_server/conf/pandora_server.conf.windows @@ -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 + diff --git a/pandora_server/lib/PandoraFMS/Config.pm b/pandora_server/lib/PandoraFMS/Config.pm index 94cdfc36cf..a2d0a3ca64 100644 --- a/pandora_server/lib/PandoraFMS/Config.pm +++ b/pandora_server/lib/PandoraFMS/Config.pm @@ -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 diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer old mode 100644 new mode 100755