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