Werk #5700: Windows agent crashed while unpacking plugins

Component Checks & agents
Title Windows agent crashed while unpacking plugins
Date Jan 31, 2018
Checkmk Edition Checkmk Enterprise (CEE)
Checkmk Version 1.5.0i3
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

The agent updater and MSI installer call the Windows agent with a special parameter 'unpack' in order to extract plugins from the .cap-archive. The agent crashed if it could not write the batch file 'uninstall_plugins.bat' or any of the extracted plugin files.

Now any errors with writing files are logged before interrupting the unpack process. After successfully unpacking the plugins, the agent checks recursively that all files in its installation directory are writable by the agent. The check stops at the first unwritable file and logs a corresponding error message before exiting.

To the list of all Werks