feat(hausmeister): pve-pp-1 und pve-pp-2 in Alert-Suppression

- homelab.conf: ALERT_SUPPRESS_HOSTS um pve-pp-1 und pve-pp-2 erweitert
  (Phnom-Penh-Kondo-Cluster: zu instabil, nicht betriebskritisch)
- monitor.py: HTTP_HEALTH_CHECKS bekommen optionalen 'host'-Key.
  Check 'Flugscanner-Agent (pve-pp-1)' wird jetzt uebersprungen, solange
  pve-pp-1 in der Suppress-Liste steht.
This commit is contained in:
Homelab Cursor 2026-04-24 16:01:59 +02:00
parent 0a153457e6
commit 50b493c224
2 changed files with 7 additions and 2 deletions

View file

@ -46,7 +46,7 @@ HTTP_HEALTH_CHECKS = [
{"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/api/health"}, {"name": "Grafana (CT 110)", "url": "http://10.10.10.110:3000/api/health"},
{"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": 5, "timeout": 25, "retry_delay": 6}, "retries": 5, "timeout": 25, "retry_delay": 6, "host": "pve-pp-1"},
] ]
EXPECTED_STOPPED = { EXPECTED_STOPPED = {
@ -163,6 +163,8 @@ def check_all() -> list[str]:
_headers = {"User-Agent": "Mozilla/5.0 (Hausmeister-Bot/1.0 health-check)"} _headers = {"User-Agent": "Mozilla/5.0 (Hausmeister-Bot/1.0 health-check)"}
for check in HTTP_HEALTH_CHECKS: for check in HTTP_HEALTH_CHECKS:
if _is_host_suppressed(check.get("host", ""), suppressed_hosts):
continue
timeout = check.get("timeout", 15) timeout = check.get("timeout", 15)
retries = check.get("retries", 1) retries = check.get("retries", 1)
retry_delay = check.get("retry_delay", 3) retry_delay = check.get("retry_delay", 3)

View file

@ -196,8 +196,11 @@ VM_144_MU3="BT-Bridge|—|BT Bridge VM"
# - pve-ka-1/2/3: Kambodscha ohne funktionierendes Internet, seit # - pve-ka-1/2/3: Kambodscha ohne funktionierendes Internet, seit
# 2026-04-04 offline, temporär stumm geschaltet am 2026-04-21. # 2026-04-04 offline, temporär stumm geschaltet am 2026-04-21.
# Wieder reinnehmen, sobald Internet in Takeo wieder läuft. # Wieder reinnehmen, sobald Internet in Takeo wieder läuft.
# - pve-pp-1/2 (Phnom Penh, Kondo-Cluster): Hardware/Netz zu instabil, nicht
# betriebskritisch. Stumm seit 2026-04-24 auf User-Wunsch. Reaktivieren,
# sobald Infrastruktur stabilisiert oder Rolle geklaert.
# ============================================================ # ============================================================
ALERT_SUPPRESS_HOSTS="pve-ka-1,pve-ka-2,pve-ka-3" ALERT_SUPPRESS_HOSTS="pve-ka-1,pve-ka-2,pve-ka-3,pve-pp-1,pve-pp-2"
# --- TELEGRAM BOTS --- # --- TELEGRAM BOTS ---
TG_CHAT_ID="674951792" TG_CHAT_ID="674951792"