Merge branch 'jokob-sk:main' into NetAlertX-Changing-absolute-path-url-to-relative-path-url-in-deviceDetailsTools-php

This commit is contained in:
Carlos V.
2025-09-11 23:22:29 +02:00
committed by GitHub
2 changed files with 166 additions and 89 deletions

View File

@@ -57,7 +57,7 @@ def check_services_health(site):
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
try:
resp = requests.get(site, verify=False, timeout=get_setting_value('WEBMON_RUN_TIMEOUT'))
resp = requests.get(site, verify=False, timeout=get_setting_value('WEBMON_RUN_TIMEOUT'), headers={"User-Agent": "NetAlertX"})
latency = resp.elapsed.total_seconds()
status = resp.status_code
except SSLError: