Werk #19200: Windows agent: coomand line returns proper exit code for agent updater
| Component | HW/SW inventory | ||
| Title | Windows agent: coomand line returns proper exit code for agent updater | ||
| Date | May 4, 2026 | ||
| Level | Trivial Change | ||
| Class | Bug Fix | ||
| Compatibility | Compatible - no manual interaction needed | ||
| Checkmk versions & editions |
|
The Windows agent command line (check_mk_agent updater) always returned
exit code 0 regardless of whether the agent updater process succeeded or
failed. This made it impossible for external automation or monitoring to
detect updater failures based on the process exit code.
Starting with this release, the Windows agent captures the actual
exit code of the spawned agent updater process and propagates it back
to the caller. The check_mk_agent updater command now returns the
real exit code, allowing scripts and orchestration tools to reliably detect
success or failure.