From ea03a485c1963c8d97eff91438688477523df535 Mon Sep 17 00:00:00 2001 From: daniel Date: Fri, 1 Dec 2017 12:26:13 +0100 Subject: [PATCH] fixed error server WUX --- pandora_server/conf/pandora_server.conf.new | 3 +++ pandora_server/lib/PandoraFMS/Config.pm | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/pandora_server/conf/pandora_server.conf.new b/pandora_server/conf/pandora_server.conf.new index c50235daa7..63ca6281d1 100644 --- a/pandora_server/conf/pandora_server.conf.new +++ b/pandora_server/conf/pandora_server.conf.new @@ -569,6 +569,9 @@ wuxserver 0 # Port of the Selenium Grid Server. #wux_port 4444 +# Maximum timeout to connect to a target web site, also for communications with a Selenium Grid server. +#wux_webagent_timeout 15 + # Enable (1) or disable (0) the Pandora FMS Syslog Server (PANDORA FMS ENTERPRISE ONLY). syslogserver 1 diff --git a/pandora_server/lib/PandoraFMS/Config.pm b/pandora_server/lib/PandoraFMS/Config.pm index 3c916a461c..0a87efe40f 100644 --- a/pandora_server/lib/PandoraFMS/Config.pm +++ b/pandora_server/lib/PandoraFMS/Config.pm @@ -453,6 +453,7 @@ sub pandora_load_config { $pa_config->{"wux_host"} = undef; # 7.0 $pa_config->{"wux_port"} = 4444; # 7.0 $pa_config->{"wux_browser"} = "*firefox"; # 7.0 + $pa_config->{"wux_webagent_timeout"} = 15; # 7.0 # Syslog Server $pa_config->{"syslogserver"} = 1; # 7.0.716 @@ -1064,6 +1065,9 @@ sub pandora_load_config { elsif ($parametro =~ m/^wux_browser\s+(.*)/i) { $pa_config->{'wux_browser'}= clean_blank($1); } + elsif ($parametro =~ m/^wux_webagent_timeout\s+([0-9]*)/i) { + $pa_config->{'wux_webagent_timeout'}= clean_blank($1); + } elsif ($parametro =~ m/^syslogserver\s+([0-1])/i) { $pa_config->{'syslogserver'}= clean_blank($1); }