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.

Werk #11247: Preserve piggyback data during restart and updates

TitlePreserve piggyback data during restart and updates
Date2020-07-03 08:08:14
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version2.0.0i1
LevelTrivial Change
ClassNew Feature
CompatibilityCompatible - no manual interaction needed

For performance reasons, the Piggyback data is stored in the tmpfs of the site (in tmp/check_mk/piggyback). This has the disadvantage that the files disappear as soon as the checkmk server is restarted or the tmpfs is unmounted (e.g. during an update).

The lack of piggyback data can temporarily lead to incorrect check results and, if you use the Dynamic Configuration, even cause certain hosts/services to disappear from the configuration for a short time.

With this change the content of tmp/check_mk/piggyback and tmp/check_mk/piggyback_sources is saved to var/omd/tmpfs-dump.tar during certain actions (currently: omd stop, omd umount).

If the "omd start" detects that tmpfs needs to be reinitialized, the backup from var/omd/tmpfs-dump.tar is restored to the fresh tmpfs.