fix(monitor): reduce Flugscanner health check retries/timeout (4x25s -> 2x10s) to prevent watchdog timeout

This commit is contained in:
orbitalo 2026-03-25 18:04:03 +00:00
parent 8fc7cb94c4
commit 14cd7a2a7e

View file

@ -42,12 +42,11 @@ def _get_passwords(cfg):
CRITICAL_CONTAINERS = [101, 109, 111, 112, 113, 115] 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
{"name": "WordPress (CT 101)", "url": "http://10.10.10.101/robots.txt"}, {"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"},
{"name": "Flugscanner-Agent (pve-pp-1)", "url": "http://100.126.26.46:5010/status", {"name": "Flugscanner-Agent (pve-pp-1)", "url": "http://100.126.26.46:5010/status",
"retries": 4, "timeout": 25, "retry_delay": 5}, "retries": 2, "timeout": 10, "retry_delay": 3},
] ]
EXPECTED_STOPPED = { EXPECTED_STOPPED = {
@ -62,7 +61,6 @@ EXPECTED_STOPPED = {
IGNORED_HOSTS = {"${HOSTNAME}", ""} IGNORED_HOSTS = {"${HOSTNAME}", ""}
# Hosts die strukturell keine regelmäßigen Logs produzieren → kein Silence-Alert
SILENCE_IGNORED_HOSTS = { SILENCE_IGNORED_HOSTS = {
"ct-600-webcam", # kein rsyslog, Stream läuft aber "ct-600-webcam", # kein rsyslog, Stream läuft aber
"ct-103-Intercity-Taxi", # absichtlich gestoppt "ct-103-Intercity-Taxi", # absichtlich gestoppt
@ -190,7 +188,7 @@ def check_all() -> list[str]:
new_mails = [] new_mails = []
for m in important: for m in important:
fp = hashlib.md5( fp = hashlib.md5(
f"{m.get('date_str','')}|{m.get('from','')}|{m.get('subject','')}".encode() f"{m.get('date_str','')}{m.get('from','')}{m.get('subject','')}".encode()
).hexdigest() ).hexdigest()
if fp not in seen: if fp not in seen:
new_mails.append(m) new_mails.append(m)