Werk #19710 · Jun 16, 26
kube_pod_uptime: Fix ValueError("Cannot render negative timespan")
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.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p8All Editions
- 2.4.0p33All Editions