Free on-demand webinars: Learn how to set up, configure, and get more out of Checkmk – Pick your webinar

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 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