From e4995a6e929fe955daeccf6d99900dcdf76f8baf Mon Sep 17 00:00:00 2001 From: Cyberes Date: Wed, 22 Nov 2023 23:58:53 -0700 Subject: [PATCH] skip not active --- fail-overdue.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fail-overdue.py b/fail-overdue.py index b1f26ad..b6043f7 100644 --- a/fail-overdue.py +++ b/fail-overdue.py @@ -28,6 +28,9 @@ def main(args): # Loop through all checks for check in checks: + if not check['attrs']['active']: + continue + last_check_time = check["attrs"]["last_check"] check_interval = check["attrs"]["check_interval"] check_timeout = check["attrs"]["check_timeout"] or args.default_timeout