Add ntfy alerts for stale hosts and reporting recovery #9

Merged
patrick merged 1 commits from feat/stale-host-alerts into main 2026-10-24 19:18:23 +00:00
Owner

Add optional ntfy notifications when a host stops reporting and when reporting resumes. A server-side systemd timer checks every five minutes using the existing configurable stale threshold, which defaults to three hours.

Persist notification state in SQLite to deduplicate routine checks and restarts, retry failed deliveries, and give newly registered hosts a grace period. Include check-alerts and test-alert commands, installer support, and setup documentation. All configuration and delivery run on the dashboard host.

Validation:

  • 96 tests passed, including HTTP delivery, recovery, retries, and upgrade coverage.
  • Systemd service and timer validated.
  • Shell syntax checks passed; shellcheck unavailable locally.
Add optional ntfy notifications when a host stops reporting and when reporting resumes. A server-side systemd timer checks every five minutes using the existing configurable stale threshold, which defaults to three hours. Persist notification state in SQLite to deduplicate routine checks and restarts, retry failed deliveries, and give newly registered hosts a grace period. Include check-alerts and test-alert commands, installer support, and setup documentation. All configuration and delivery run on the dashboard host. Validation: - 96 tests passed, including HTTP delivery, recovery, retries, and upgrade coverage. - Systemd service and timer validated. - Shell syntax checks passed; shellcheck unavailable locally.
patrick added 1 commit 2026-10-24 19:16:52 +00:00
Add ntfy alerts for stale hosts and reporting recovery
CI / tests (Python 3.10) (pull_request) Successful in 19s
CI / tests (Python 3.11) (pull_request) Successful in 17s
CI / tests (Python 3.12) (pull_request) Successful in 17s
CI / tests (Python 3.13) (pull_request) Successful in 18s
CI / lint (pull_request) Successful in 3s
47f93968e9
patrick merged commit 3ac7111371 into main 2026-10-24 19:18:23 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: patrick/kernel-automation#9