From 3a0ec7ace50272819a47673a77f3b13d2c66d1c9 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Thu, 15 Oct 2015 11:51:09 +0200 Subject: [PATCH] Modified Config.pm to read remote_config tokens and temporal --- pandora_server/lib/PandoraFMS/Config.pm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pandora_server/lib/PandoraFMS/Config.pm b/pandora_server/lib/PandoraFMS/Config.pm index 6d588fe1f7..47c8793f01 100644 --- a/pandora_server/lib/PandoraFMS/Config.pm +++ b/pandora_server/lib/PandoraFMS/Config.pm @@ -397,6 +397,9 @@ sub pandora_load_config { # Remote config server options $pa_config->{"remote_config_opts"} = ''; # 6.0 + + # Temp path for file sendinn and receiving + $pa_config->{"temporal"} = '/tmp'; # 6.0 # Check for UID0 if ($pa_config->{"quiet"} != 0){ @@ -871,6 +874,18 @@ sub pandora_load_config { elsif ($parametro =~ m/^remote_config\s+([0-9]*)/i) { $pa_config->{'remote_config'}= clean_blank($1); } + elsif ($parametro =~ m/^remote_config_address\s(.*)/i) { + $pa_config->{'remote_config_address'}= clean_blank($1); + } + elsif ($parametro =~ m/^remote_config_port\s+([0-9]*)/i) { + $pa_config->{'remote_config_port'}= clean_blank($1); + } + elsif ($parametro =~ m/^remote_config_opts\s(.*)/i) { + $pa_config->{'remote_config_opts'}= clean_blank($1); + } + elsif ($parametro =~ m/^temporal\s(.*)/i) { + $pa_config->{'temporal'}= clean_blank($1); + } } # end of loop for parameter # # Set to RDBMS' standard port