Werk #19216: Windows agent: Fix excessive restarts of the agent updater plugin
| Component | Agent bakery | ||||
| Title | Windows agent: Fix excessive restarts of the agent updater plugin | ||||
| Date | Jul 1, 2026 | ||||
| Level | Trivial Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
The Windows agent restarted the agent updater plugin (cmk_update_agent.checkmk.py)
every minute instead of respecting the configured cache interval. This happened
because the updater plugin produces no output on stdout, and the agent interpreted
the absence of data as a timeout, killing the process and never updating its
internal cache timestamp. As a result, the cache was always considered stale and
the plugin was restarted on every check cycle.
Starting with this release, the Windows agent correctly detects when the updater process has exited on its own and updates the cache timestamp accordingly, even when the process produced no stdout output. The agent updater plugin is now restarted only when the configured cache age has actually expired.