skip not active

This commit is contained in:
Cyberes 2023-11-22 23:58:53 -07:00
parent fa61a8d4ee
commit e4995a6e92
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ def main(args):
# Loop through all checks # Loop through all checks
for check in checks: for check in checks:
if not check['attrs']['active']:
continue
last_check_time = check["attrs"]["last_check"] last_check_time = check["attrs"]["last_check"]
check_interval = check["attrs"]["check_interval"] check_interval = check["attrs"]["check_interval"]
check_timeout = check["attrs"]["check_timeout"] or args.default_timeout check_timeout = check["attrs"]["check_timeout"] or args.default_timeout