Monitor: WordPress Health-Check wp-cron.php -> robots.txt (wp-cron hängt bei Cron-Jobs)
This commit is contained in:
parent
0f6cd2ba5f
commit
dc52448e49
2 changed files with 2 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ def check_connectivity() -> bool:
|
||||||
try:
|
try:
|
||||||
if not WP_URL or not WP_PASSWORD:
|
if not WP_URL or not WP_PASSWORD:
|
||||||
return False
|
return False
|
||||||
resp = requests.get(f"{WP_URL}/wp-cron.php", timeout=8, allow_redirects=False)
|
resp = requests.get(f"{WP_URL}/robots.txt", timeout=8, allow_redirects=False)
|
||||||
return resp.status_code < 400
|
return resp.status_code < 400
|
||||||
except Exception:
|
except Exception:
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ CRITICAL_CONTAINERS = [101, 109, 111, 112, 113, 115]
|
||||||
|
|
||||||
HTTP_HEALTH_CHECKS = [
|
HTTP_HEALTH_CHECKS = [
|
||||||
# LAN-IPs direkt prüfen — kein Cloudflare-Umweg, keine Tailscale-Routing-Probleme
|
# LAN-IPs direkt prüfen — kein Cloudflare-Umweg, keine Tailscale-Routing-Probleme
|
||||||
{"name": "WordPress (CT 101)", "url": "http://10.10.10.101/wp-cron.php"},
|
{"name": "WordPress (CT 101)", "url": "http://10.10.10.101/robots.txt"},
|
||||||
{"name": "Matomo (CT 113)", "url": "http://10.10.10.113"},
|
{"name": "Matomo (CT 113)", "url": "http://10.10.10.113"},
|
||||||
{"name": "Grafana (CT 110)", "url": "http://10.10.10.110:3000"},
|
{"name": "Grafana (CT 110)", "url": "http://10.10.10.110:3000"},
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue