Werk #16607: Handle the uptime of Docker containers across time zones

Component Checks & agents
Title Handle the uptime of Docker containers across time zones
Date Apr 12, 2024
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.3.0b6 2.4.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

As of version 2.3, the uptime monitoring service for Docker containers could crash if the container's start time was later than the current CheckMk site's current time. This resulted in a negative uptime calculation error (ValueError: "Cannot render negative timespan"). This could occur in situations where the host system and the container had different configured timezones.

We now correctly handle all timestamps, ensuring accurate uptime calculations regardless of timezone configurations.

To the list of all Werks