Monitor: WordPress Health-Check wp-cron.php -> robots.txt (wp-cron hängt bei Cron-Jobs)

This commit is contained in:
root 2026-03-17 15:35:14 +07:00
parent 0f6cd2ba5f
commit dc52448e49
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ def check_connectivity() -> bool:
try:
if not WP_URL or not WP_PASSWORD:
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
except Exception:
return False

View file

@ -41,7 +41,7 @@ CRITICAL_CONTAINERS = [101, 109, 111, 112, 113, 115]
HTTP_HEALTH_CHECKS = [
# 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": "Grafana (CT 110)", "url": "http://10.10.10.110:3000"},
]