fix a few things
This commit is contained in:
parent
73ad7b40d6
commit
c49c47739e
|
@ -112,7 +112,7 @@ def main(args):
|
||||||
print_icinga2_check_status(f'Failed to get UPS status: data stale', nagios.STATE_CRIT)
|
print_icinga2_check_status(f'Failed to get UPS status: data stale', nagios.STATE_CRIT)
|
||||||
sys.exit(nagios.STATE_CRIT)
|
sys.exit(nagios.STATE_CRIT)
|
||||||
else:
|
else:
|
||||||
print_icinga2_check_status(f'Failed to get UPS status: {e} - "{e.output}"', nagios.STATE_UNKNOWN)
|
print_icinga2_check_status(f'Failed to get UPS status: {e} - "{e.output.decode()}"', nagios.STATE_UNKNOWN)
|
||||||
else:
|
else:
|
||||||
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)
|
sys.exit(nagios.STATE_UNKNOWN)
|
||||||
|
|
|
@ -6,4 +6,3 @@ smartmontools
|
||||||
curl
|
curl
|
||||||
recode
|
recode
|
||||||
python3-pip
|
python3-pip
|
||||||
libssl-dev
|
|
||||||
|
|
Loading…
Reference in New Issue