Catch up on the latest product updates, best practices, and expert insights from the Checkmk Conference #12 – Watch the livestream recordings now

Werk #18756: ups_bat_temp: Fix crash when UPS reports an empty battery temperature

Component Checks & agents
Title ups_bat_temp: Fix crash when UPS reports an empty battery temperature
Date Jul 8, 2026
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
3.0.0b1
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.5.0p9 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.4.0p35
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT

Some UPS devices (e.g. the CS141 SNMP/WEB Adapter) report an empty value for the battery temperature. This caused the check to crash with "ValueError: invalid literal for int() with base 10: ''". The check now skips such devices instead of crashing.

To the list of all Werks