bundles/icinga2: fix typo in check_usv_snmp
This commit is contained in:
parent
d51cded72d
commit
d9595ad8e6
1 changed files with 3 additions and 3 deletions
|
@ -28,15 +28,15 @@ try:
|
||||||
|
|
||||||
# Estimated runtime in minutes
|
# Estimated runtime in minutes
|
||||||
if int(result['1.2.3.0']) < 15:
|
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:
|
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
|
# Battery status in percent
|
||||||
if int(result['1.2.4.0']) < 10:
|
if int(result['1.2.4.0']) < 10:
|
||||||
crit.add('Remaining runtime is less than 10%! Only {}% left.'.format(result['1.2.4.0']))
|
crit.add('Remaining runtime is less than 10%! Only {}% left.'.format(result['1.2.4.0']))
|
||||||
elif int(result['1.2.4.0']) < 25:
|
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
|
# Output load in percent
|
||||||
if int(result['1.4.4.1.5.1']) > 90:
|
if int(result['1.4.4.1.5.1']) > 90:
|
||||||
|
|
Loading…
Reference in a new issue