Werk #18028: systemd-timedated: avoid agent timeout when service is down

Component Checks & agents
Title systemd-timedated: avoid agent timeout when service is down
Date Jun 11, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p6 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p35
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

When the systemd-timedated.service is not running, the command used by the agent to retrieve its status can time out, resulting in the agent timeout.

To address this issue, we have added a timeout of 5 seconds to limit the timedatectl show command.

Credits for this improvement go to GitHub user mueller-ma.

To the list of all Werks