summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/principal
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-05-04 09:19:19 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-05-10 10:33:10 +0200
commitd3da332d007872a32b4f9ccd66370d3f9acd9458 (patch)
tree10dfbcb442a1d2e0aba95181de7bf6b1a11b081e /admin/WebConsole/principal
parenta8c0ce02da5ce003150aa75d18f9360f29650581 (diff)
#718 Increase ogAgent probe timeout
Otherwise, webconsole fails to fetch status of computers with ogAgent when there are too many (100 approx.).
Diffstat (limited to 'admin/WebConsole/principal')
-rw-r--r--admin/WebConsole/principal/sondeo.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/admin/WebConsole/principal/sondeo.php b/admin/WebConsole/principal/sondeo.php
index 6cb76baa..7cc87512 100644
--- a/admin/WebConsole/principal/sondeo.php
+++ b/admin/WebConsole/principal/sondeo.php
@@ -56,7 +56,10 @@
$urls[$ip] = "https://$ip:8000/opengnsys/status";
}
// Launch concurrent requests.
- $responses = multiRequest($urls);
+ $options = array(CURLOPT_SSL_VERIFYHOST => false,
+ CURLOPT_SSL_VERIFYPEER => false,
+ CURLOPT_TIMEOUT_MS => 1000);
+ $responses = multiRequest($urls, $options);
// Process responses array (IP as array index).
foreach ($responses as $ip => $resp) {
if (isset($resp['data'])) {