during my upgrade process from OH 2 to OH 3 (great improvement!) I am struggeling with the rrd4j persistence. Therefore I wanted to look inside the newly created rrd4j data files. If you are using docker container (recommended…), these files are located here: …/openhab/userdata/persistence/rrd4j/.
Put both files into the same directory. Use a CLI and change into this directory. Start the inspector with java -cp rrd4j-3.3.1-inspector.jar org.rrd4j.inspector.RrdInspector
Select a rrd4j file for inspection. If you get an error like Exception in thread “main” java.lang.NoClassDefFoundError: org/rrd4j/core/RrdDb, then you are missing the 2nd .jar-file from above!
This should clarify the usage of the rrd4j inspector. Don’t use later versions of the inspector, the required class is not there anymore… Additionally the inspector requires a graphical interface (Windows-PC is fine) and does not work on headless systems.
Yes, I confirm. My Rasbian is headless, I need to run the tool on Windows.
Yesterday I did just open the RRD file to take a look, I didn’t want to stop OH.
But now, to be sure, I stopped OH and could change a NaN value in the database and checked that the file was properly updated.
In the manifest of RRdInspector I can read JDK 11:
Microsoft Windows [version 10.0.22000.1696]
(c) Microsoft Corporation. Tous droits réservés.
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)