Fix: State-Datei nach /var/cache/ verschieben — Git-Sync überschrieb sie bei jedem Auto-Sync

This commit is contained in:
root 2026-03-09 18:48:52 +07:00
parent 3288618556
commit f70923ed02
3 changed files with 4 additions and 2 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
__pycache__/
*.pyc
.alert_state.json

View file

@ -1 +0,0 @@
{"8ef1cef9771619290a743b95d6496bcb": {"ts": 1773047417.428965, "text": "\ud83d\udce7 1 wichtige Mail(s) (letzte Stunde): \"Synology Notification System\"", "cat": "mail"}}

View file

@ -10,7 +10,7 @@ from datetime import datetime, timezone
sys.path.insert(0, os.path.dirname(__file__))
from core import config, loki_client, proxmox_client, mail_client
ALERT_STATE_FILE = os.path.join(os.path.dirname(__file__), ".alert_state.json")
ALERT_STATE_FILE = "/var/cache/hausmeister-alert-state.json"
ALERT_COOLDOWN_SECONDS = {
"container": 1800,
"ram": 1800,