Notify when a host has needed a reboot or updates for too long
The alert timer now evaluates each host with the dashboard's status logic and sends one ntfy message once a host has been in reboot or update for status_alert_after_hours, measured from when it entered that status. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d6480ef1b9
commit
ce231bd471
4 files changed
+196
-4
No files matched your search
@@ -149,7 +149,7 @@ def main(argv: list[str] | None = None) -> int:
|
||||
sub = parser.add_subparsers(dest="command", required=True)
|
||||
|
||||
sub.add_parser("serve", help="run the HTTP server").set_defaults(func=cmd_serve)
|
||||
sub.add_parser("check-alerts", help="send stale-host and recovery notifications").set_defaults(
|
||||
sub.add_parser("check-alerts", help="send stale, recovery, reboot and update notifications").set_defaults(
|
||||
func=cmd_check_alerts)
|
||||
sub.add_parser("test-alert", help="send a test notification to the configured ntfy topic").set_defaults(
|
||||
func=cmd_test_alert)
|
||||
|
||||
Reference in new issue
Block a user