remove existing down check
This commit is contained in:
parent
e3664a66cc
commit
7c59dd4afc
|
@ -33,7 +33,7 @@ def main(args):
|
||||||
check_timeout = check["attrs"]["check_timeout"] or args.default_timeout
|
check_timeout = check["attrs"]["check_timeout"] or args.default_timeout
|
||||||
|
|
||||||
# If the check is overdue.
|
# If the check is overdue.
|
||||||
if current_time - last_check_time > check_interval + check_timeout and check['attrs']['state'] != 3:
|
if current_time - last_check_time > check_interval + check_timeout:
|
||||||
headers = {'Accept': 'application/json', 'Content-Type': 'application/json'}
|
headers = {'Accept': 'application/json', 'Content-Type': 'application/json'}
|
||||||
next_check_time = last_check_time + check_interval + check_timeout
|
next_check_time = last_check_time + check_interval + check_timeout
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue