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