fix(keenetic): sustain 5min before router offline alert

Phantom OFFLINE/online Telegram spam from brief poll failures.
Wait 5 min sustained offline, re-verify auth before alerting,
30 min cooldown between repeat alerts, single recovery message.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Андрей Бобырев
2026-05-24 01:39:12 +03:00
parent 668e2eac33
commit 8beccae2b5
2 changed files with 79 additions and 8 deletions

View File

@@ -111,7 +111,7 @@ cd /opt/vps-monitoring
Настройка: `TELEGRAM_BOT_TOKEN` + `TELEGRAM_CHAT_ID` в systemd или settings.
Keenetic алерты:
- Router offline / back online
- Router offline 5+ мин (sustained + re-verify) / back online
- No internet
- CPU/RAM > 90%
- **VPN down 5+ минут** (sustained, deduplicated)