Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: b033a68ea68b1d10b27ba719d74a3c041782999f
https://github.com/tribe29/checkmk/commit/b033a68ea68b1d10b27ba719d74a3c041…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2023-02-20 (Mon, 20 Feb 2023)
Changed paths:
A .werks/15237
M cmk/gui/plugins/metrics/translation.py
M cmk/update_rrd_fs_names.py
Log Message:
-----------
15237 FIX Deal with 'messed up' RRD files
In some particular update scenario, users would see a message about 'messed up'
RRD files:
<i>"RRD files for host myHost [...] are messed up. Please restore them both
from backup."</i>
This case is now properly handled.
Technical details:
Older filesystem metrics have been created using the mount as metric name, leading to a
lot of differently named metrics.
We have since changed the metric name to the predictable (and reusable) name
'fs_used'.
The migration failed in cases where for some reason both the old and the new metric are
present.
In this case we now create the artificial metric
<tt>fs_used_renamed_legacy_records</tt> from the old values, which will be
prepended to the new metric to provide the full history of RRDs.
Change-Id: I32ecc0051b9027d27fe798a21438666579977c40