Werk #17529: apc_ats_status: Handle undefined power supply status

Component Checks & agents
Title apc_ats_status: Handle undefined power supply status
Date Mar 21, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0b2
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p30
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

When a "0" in the SNMP data indicates the absence of a power supply (e.g. because the unit does not support this) a ValueError got raised during parsing.

Now this value gets handled without a crash or warning. The absense of the power supply gets noted as "xV power supply not available".

SUP-22815

To the list of all Werks