From cf82ed3ae72885c26243919d3f881faf176497af Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Mon, 22 Apr 2019 16:28:07 +0200 Subject: [PATCH] including several extra tokens in config Former-commit-id: a391371f0c6d9ee034670a65fa7422e4b08e87df --- pandora_server/lib/PandoraFMS/Config.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pandora_server/lib/PandoraFMS/Config.pm b/pandora_server/lib/PandoraFMS/Config.pm index bf29a9ab17..73321a4a65 100644 --- a/pandora_server/lib/PandoraFMS/Config.pm +++ b/pandora_server/lib/PandoraFMS/Config.pm @@ -1133,6 +1133,18 @@ sub pandora_load_config { elsif ($parametro =~ m/^fsnmp\s(.*)/i) { $pa_config->{'fsnmp'}= clean_blank($1); } + + # Pandora HA extra + elsif ($parametro =~ m/^ha_file\s(.*)/i) { + $pa_config->{'ha_file'} = clean_blank($1); + } + elsif ($parametro =~ m/^ha_pid_file\s(.*)/i) { + $pa_config->{'ha_pid_file'} = clean_blank($1); + } + elsif ($parametro =~ m/^pandora_service_cmd\s(.*)/i) { + $pa_config->{'pandora_service_cmd'} = clean_blank($1); + } + } # end of loop for parameter # # Set to RDBMS' standard port