Werk #16328: primekey_hsm_battery_voltage: Fixed parsing of section when battery voltage is not available

Component Checks & agents
Title primekey_hsm_battery_voltage: Fixed parsing of section when battery voltage is not available
Date Nov 24, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p16 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Sometimes the battery voltage was not available or it wasn't a number. That cause the parsing of the section to fail. This has now been fixed. In the case of voltage being: 'External Battery: absence", the check status will be OK and the summary will provide details that the battery is absent. If the voltage is not a number or is not absent, the voltage check will be skipped and the check result will the battery state.

To the list of all Werks