OVHserver/opt
SamoilenkoVadym 12b95e25f9 fix: исправлен health-check-alerting.sh и настроены ежедневные отчеты
Исправлены критические проблемы в health-check-alerting.sh:

1. check_backup_status: Исправлено определение последнего snapshot
   - Было: grep | tail | cut (брал первый time из JSON)
   - Стало: python3 парсинг JSON массива (берет snapshots[-1])
   - Теперь видит актуальный бэкап от 2025-11-07 14:37

2. check_container_restarts: Добавлена проверка uptime
   - Теперь алертит только если uptime < 24h для >10 рестартов
   - Или uptime < 48h для >5 рестартов
   - realtime-dev.supabase-realtime (uptime: 63h) больше не алертит

3. check_backup_status: Улучшена проверка локальных бэкапов
   - Изменено с days на hours для более точного контроля

Настроено расписание cron:
- Было: Каждые 30 минут (*/30 * * * *)
- Стало: Дважды в день в 10:00 и 19:00 (0 10,19 * * *)

Результаты тестирования:
-  Restic backup OK: 0h old (было: 8 days old)
-  Local DB backup OK: 0h old
-  Container restarts: нет алертов (было: 2 critical)
- ⚠️ 1 warning: Too many R2 snapshots (некритично)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-07 14:45:54 +00:00
..
00-infrastructure chore: initial infrastructure setup with Syncthing, Git and documentation 2025-11-05 16:41:12 +00:00
01-security chore: initial infrastructure setup with Syncthing, Git and documentation 2025-11-05 16:41:12 +00:00
02-core fix: улучшения скриптов мониторинга и backup 2025-11-06 10:47:20 +00:00
03-business chore: initial infrastructure setup with Syncthing, Git and documentation 2025-11-05 16:41:12 +00:00
04-tools chore: initial infrastructure setup with Syncthing, Git and documentation 2025-11-05 16:41:12 +00:00
05-backups/scripts fix: исправлен health-check-alerting.sh и настроены ежедневные отчеты 2025-11-07 14:45:54 +00:00
infrastructure-docs fix: улучшения скриптов мониторинга и backup 2025-11-06 10:47:20 +00:00
postiz-config chore: initial infrastructure setup with Syncthing, Git and documentation 2025-11-05 16:41:12 +00:00
fix_odoo_pass.py chore: initial infrastructure setup with Syncthing, Git and documentation 2025-11-05 16:41:12 +00:00