We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Checkmk Conference #6 goes digital. Get your tickets here!

Werk #6938: cmk-update-agent: Handle failing package manager

ComponentAgent Bakery
Titlecmk-update-agent: Handle failing package manager
Date2019-01-18 16:43:21
Checkmk EditionCheckmk Enterprise Edition (CEE)
Checkmk Version1.6.0b1,1.5.0p12
LevelTrivial Change
ClassBug Fix
CompatibilityCompatible - no manual interaction needed

This werk fixes two bugs that occur on Unix and Linux when the invoked package manager fails to install an agent package:

The agent updater saved the agent hash to its state file immediately before the update takes place. As a result, an agent package got recognized as installed even if its installation failed.

(Regression since Check_MK 1.5) Due to inproper handling of the stderr and stdout streams coming from the invoked package manager, the agent updater crashed on a package manager failure instead of forwarding the error messages to the user or log.