Werk #19384 · Nov 25, 26
HW/SW Inventory: Update warns about trees in the legacy file format
Since Checkmk 2.5.0, HW/SW Inventory trees are stored as JSON (werk #18032). A nightly cron job converts the trees that still use the previous file format, 1/50 of all trees per run (werk #19981).
With Checkmk 3.1.0, the previous file format can no longer be read. To prevent data loss, all trees must be converted before you update to it.
The pre-update checks of cmk-update-config now warn while trees in the
legacy file format are left. The warning shows how many trees are left and,
once the nightly job has converted some trees, an estimate of how long
converting the rest takes. The number only includes the trees of existing
hosts. The update itself continues. Updates from Checkmk 2.4 or
earlier skip this check: these versions neither convert trees nor provide
the conversion command.
To convert the remaining trees right away, run as site user:
cmk-transform-inventory-trees --all
Depending on the number of trees, this can take a long time. Preferably run it outside business hours.
To see which trees are not converted, run:
cmk-transform-inventory-trees --show-results
It lists the trees of hosts that no longer exist under "Legacy trees of removed hosts". These trees are never converted. Ensure that these files are not connected to any host; only then can they be deleted.
Details
- Class:
- New Features
- Level:
- Trivial
- Component:
- Inventory
- Versions:
- 2.5.0p24Not yet releasedAll Editions