CMK version: 2.3.0p29
OS version: Debian 12
CMK agent executed via SSH
Error message:
When querying the CMK agent every 5 minutes, the chrony section cache of the agent is always expired and the CheckMK probe alternates between OK and WARN (Missing monitoring data for plugins, chrony).
When trying to disable the cache for the chrony section in the agent, by using the ‘–profile’ arg ot the DISABLE_CACHING variable for example, the section for chrony is malformed:
host:~# check_mk_agent -p | grep '[<]<<chrony'
'<<<chrony>>>'; waitmax 5 chronyc -n tracking | cat || true
This bug was not present in version 2.2.0p11 of the agent.
It seems that:
- the default cache configuration for chrony section is not suitable for a check interval more than few minutes and is not configurable via a variable
- an eval is missing here: checkmk/agents/check_mk_agent.linux at master · Checkmk/checkmk · GitHub