Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: 54a547dc4b0f5a42b8001443d7f1ef254197aa35
https://github.com/tribe29/checkmk/commit/54a547dc4b0f5a42b8001443d7f1ef254…
Author: Ulrich Bschorer <ulrich.bschorer(a)tribe29.com>
Date: 2021-04-12 (Mon, 12 Apr 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