fix exception
This commit is contained in:
parent
d8f94e5aa2
commit
227e1f8c75
|
@ -112,8 +112,7 @@ def main(args):
|
|||
print_icinga2_check_status(f'Failed to get UPS status: data stale', nagios.STATE_CRIT)
|
||||
sys.exit(nagios.STATE_CRIT)
|
||||
else:
|
||||
print_icinga2_check_status(f'Failed to get UPS status: {output}', nagios.STATE_UNKNOWN)
|
||||
print_icinga2_check_status(f'Failed to get UPS status: {e}', nagios.STATE_UNKNOWN)
|
||||
print_icinga2_check_status(f'Failed to get UPS status: {e}', nagios.STATE_UNKNOWN)
|
||||
sys.exit(nagios.STATE_UNKNOWN)
|
||||
|
||||
# Remove unwanted stats.
|
||||
|
|
Loading…
Reference in New Issue