Werk #22838: SNMP uptime: ignore negative uptime
| Component | Checks & agents | ||||
| Title | SNMP uptime: ignore negative uptime | ||||
| Date | Nov 2, 2026 | ||||
| Level | Trivial Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
Some SNMP devices report the host resources uptime (hrSystemUptime)
as a signed 32 bit value, which becomes negative after about 248 days
of uptime. The SNMP Uptime service then crashed with
ValueError: Cannot render negative timespan.
A negative uptime value is now ignored. The service uses the uptime of the SNMP agent (sysUpTime) instead and shows the real uptime.