CMK version: 2.3.0p23
OS version: (Client): Debian 11
Error message: Agent timeout
When the Linux agents checks systemd-timesync, it calls timedatectl show: checkmk/agents/check_mk_agent.linux at 86cbbd37f87b11f5a7fab9f7403d26a995da210d · Checkmk/checkmk · GitHub
When the service systemd-timedated.service doesn’t run, the command times out and blocks the agent out for ~25 seconds:
# time timedatectl show
Failed to parse bus message: Connection timed out
real 0m25.020s
user 0m0.000s
sys 0m0.006s
# systemctl status systemd-timedated.service
● systemd-timedated.service - Time & Date Service
Loaded: loaded (/lib/systemd/system/systemd-timedated.service; static)
Active: failed (Result: exit-code) since Wed 2025-02-12 15:35:38 CET; 7s ago
25 seconds is nearly half of the default 60 seconds agent timeout, so the agent reaches this timeout sometimes when systemd-timedated is down.