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

Komponente Checks & agents
Titel Handle the uptime of Docker containers across time zones
Datum 12.04.2024
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 2.3.0b6 2.4.0b1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

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.

Zur Liste aller Werks