Werk #5700: Windows agent crashed while unpacking plugins

KomponenteChecks & Agents
TitelWindows agent crashed while unpacking plugins
Datum2018-01-31 15:22:44
Checkmk EditionCheckmk Enterprise Edition (CEE)
Checkmk Version1.5.0i3
LevelTrivial Change
KlasseBug Fix
KompatibilitätKompatibel - benötigt kein manuelles Eingreifen

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.