mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch '548-modulos-web-de-latencia-pasan-a-desconocido-ext-3807-open' into 'pandora_6.0'
Add a default timeout for web modules. Ref #548. See merge request !435
This commit is contained in:
commit
6081b69a92
@ -382,6 +382,10 @@ webserver 1
|
||||
|
||||
web_threads 1
|
||||
|
||||
# Default timeout (in seconds) for web modules.
|
||||
|
||||
web_timeout 60
|
||||
|
||||
# Uncomment to perform web checks with CURL instead of LWP.
|
||||
#web_engine curl
|
||||
|
||||
|
@ -208,6 +208,7 @@ sub pandora_load_config {
|
||||
$pa_config->{"exportserver"} = 1; # default
|
||||
$pa_config->{"inventoryserver"} = 1; # default
|
||||
$pa_config->{"webserver"} = 1; # 3.0
|
||||
$pa_config->{"web_timeout"} = 60; # 6.0SP5
|
||||
$pa_config->{"servermode"} = "";
|
||||
$pa_config->{'snmp_logfile'} = "/var/log/pandora_snmptrap.log";
|
||||
$pa_config->{"network_threads"} = 3; # Fixed default
|
||||
@ -604,6 +605,9 @@ sub pandora_load_config {
|
||||
elsif ($parametro =~ m/^webserver\s+([0-9]*)/i) {
|
||||
$pa_config->{'webserver'}= clean_blank($1);
|
||||
}
|
||||
elsif ($parametro =~ m/^web_timeout\s+([0-9]*)/i) {
|
||||
$pa_config->{'web_timeout'}= clean_blank($1);
|
||||
}
|
||||
elsif ($parametro =~ m/^eventserver\s+([0-9]*)/i) {
|
||||
$pa_config->{'eventserver'}= clean_blank($1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user