Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 4e2b507706533296f4a2709b8f894a42e8641f73
https://github.com/tribe29/checkmk/commit/4e2b507706533296f4a2709b8f894a42e…
Author: Ulrich Bschorer <ulrich.bschorer(a)tribe29.com>
Date: 2021-03-31 (Wed, 31 Mar 2021)
Changed paths:
A .werks/12647
M checks/ups_cps_battery
A
tests/unit/checks/generictests/datasets/ups_cps_battery_regression_temperature_none.py
Log Message:
-----------
12647 FIX ups_cps_battery: fix crash "ValueError (invalid literal for int() with
base 10:'NULL')"
The check ups_cps_battery crashed with the error "ValueError (invalid literal for
int() with base 10:'NULL')"
if the value for the OID "upsAdvanceBatteryTemperature" is equal to
'NULL'.
This is a violation of the SNMP specification.
In future these values will simply be ignored.
Change-Id: Icf2d123d77b679833eb98777c0764775e21d39a5