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

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
3.0.0b1
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.5.0p19
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT

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.

To the list of all Werks