2009-01-21 Ramon Novoa <rnovoa@artica.es>

* pandora_server/lib/PandoraFMS/Config.pm: Updated configuration
          options.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1380 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
ramonn 2009-01-21 12:05:40 +00:00
parent 588de6e5b4
commit 5606159a17
2 changed files with 22 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2009-01-21 Ramon Novoa <rnovoa@artica.es>
* pandora_server/lib/PandoraFMS/Config.pm: Updated configuration
options.
2009-01-21 Sancho Leren <slerena@artica.es> 2009-01-21 Sancho Leren <slerena@artica.es>
* pandora_server_upgrade: Script to upgrade to latest version * pandora_server_upgrade: Script to upgrade to latest version

View File

@ -201,8 +201,13 @@ sub pandora_loadconfig {
$pa_config->{'max_log_size'} = 1048576; # 1MB by default $pa_config->{'max_log_size'} = 1048576; # 1MB by default
# Multicast status report # Multicast status report
$pa_config->{'mcast_group'} = '226.1.1.2'; $pa_config->{'mcast_status_group'} = '226.1.1.2';
$pa_config->{'mcast_port'} = '2000'; $pa_config->{'mcast_status_port'} = '2000';
# Multicast change report
$pa_config->{'mcast_change_group'} = '226.1.1.2';
$pa_config->{'mcast_change_port'} = '2000';
# Check for UID0 # Check for UID0
if ($pa_config->{"quiet"} != 0){ if ($pa_config->{"quiet"} != 0){
@ -415,11 +420,17 @@ sub pandora_loadconfig {
elsif ($parametro =~ m/^max_log_size\s([0-9]*)/i) { elsif ($parametro =~ m/^max_log_size\s([0-9]*)/i) {
$pa_config->{'max_log_size'}= clean_blank($1); $pa_config->{'max_log_size'}= clean_blank($1);
} }
elsif ($parametro =~ m/^mcast_group\s([0-9\.]*)/i) { elsif ($parametro =~ m/^mcast_status_group\s([0-9\.]*)/i) {
$pa_config->{'mcast_group'}= clean_blank($1); $pa_config->{'mcast_status_group'}= clean_blank($1);
} }
elsif ($parametro =~ m/^mcast_port\s([0-9]*)/i) { elsif ($parametro =~ m/^mcast_change_group\s([0-9\.]*)/i) {
$pa_config->{'mcast_port'}= clean_blank($1); $pa_config->{'mcast_change_group'}= clean_blank($1);
}
elsif ($parametro =~ m/^mcast_status_port\s([0-9]*)/i) {
$pa_config->{'mcast_status_port'}= clean_blank($1);
}
elsif ($parametro =~ m/^mcast_change_port\s([0-9]*)/i) {
$pa_config->{'mcast_change_port'}= clean_blank($1);
} }
} # end of loop for parameter # } # end of loop for parameter #