oops
This commit is contained in:
parent
efc3c010f9
commit
a7ad8635e2
|
@ -75,10 +75,8 @@ def check_timer(timer_name):
|
||||||
if err:
|
if err:
|
||||||
quit_check(f'{err}', nagios.STATE_UNKNOWN)
|
quit_check(f'{err}', nagios.STATE_UNKNOWN)
|
||||||
|
|
||||||
print(next_elapse)
|
|
||||||
|
|
||||||
if next_elapse['left'] < 0 or next_elapse['passed'] < 0:
|
if next_elapse['left'] < 0 or next_elapse['passed'] < 0:
|
||||||
quit_check(f'Timer is negative? Left: {next_elapse["left"]}. Passed: {next_elapse["passed"]}', nagios.STATE_UNKNOWN)
|
quit_check(f'Timer is negative??? Left: {next_elapse["left"]}. Passed: {next_elapse["passed"]}', nagios.STATE_UNKNOWN)
|
||||||
|
|
||||||
local_tz = tz.tzlocal()
|
local_tz = tz.tzlocal()
|
||||||
next_elapse_str = next_elapse['next'].replace(tzinfo=local_tz).strftime('%a %Y-%m-%d %H:%M %Z')
|
next_elapse_str = next_elapse['next'].replace(tzinfo=local_tz).strftime('%a %Y-%m-%d %H:%M %Z')
|
||||||
|
|
Loading…
Reference in New Issue