bundles/icinga2: fix typo in check_usv_snmp

This commit is contained in:
Franzi 2021-05-15 07:28:15 +02:00
parent d51cded72d
commit d9595ad8e6
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -28,15 +28,15 @@ try:
# Estimated runtime in minutes
if int(result['1.2.3.0']) < 15:
crit.add('Remaining runtime is less than 10 minutes! Only {} minutes left.'.format(result['1.2.3.0']))
crit.add('Remaining runtime is less than 15 minutes! Only {} minutes left.'.format(result['1.2.3.0']))
elif int(result['1.2.3.0']) < 25:
warn.add('Remaining runtime is less than 15 minutes! Only {} minutes left.'.format(result['1.2.3.0']))
warn.add('Remaining runtime is less than 25 minutes! Only {} minutes left.'.format(result['1.2.3.0']))
# Battery status in percent
if int(result['1.2.4.0']) < 10:
crit.add('Remaining runtime is less than 10%! Only {}% left.'.format(result['1.2.4.0']))
elif int(result['1.2.4.0']) < 25:
warn.add('Remaining runtime is less than 15%! Only {}% left.'.format(result['1.2.4.0']))
warn.add('Remaining runtime is less than 25%! Only {}% left.'.format(result['1.2.4.0']))
# Output load in percent
if int(result['1.4.4.1.5.1']) > 90: