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

Werk #19710: kube_pod_uptime: Fix ValueError("Cannot render negative timespan")

Component Checks & agents
Title kube_pod_uptime: Fix ValueError("Cannot render negative timespan")
Date Jun 16, 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.0p8
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.4.0p33 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT

The uptime is the Pod's start time subtracted from the current time on the Checkmk server. If the Kubelet's clock is ahead of the Checkmk server's, this becomes negative and the service crashed with ValueError("Cannot render negative timespan").

The check now reports this as UNKNOWN, hinting at clock skew, instead of crashing.

To the list of all Werks