I had a good working rrd4j persistence with working graphs but after enabling the persistence for my.openhab I no longer see the graphs.
Also min and max values are not calculated correctly anymore.
my rrd4j contents:
// persistence strategies have a name and a definition and are referred to in the “Items” section
Strategies {
everyMinute : “0 * * * * ?”
everyHour : “0 0 * * * ?”
everyDay : “0 0 0 * * ?”
default = everyChange
}
To have a reliable rrd4j persistence you should use “everyMinute”, not “everyChange”. everyChange works sometimes, but not reliable, everyMinute works always …
BTW, I had the same problem when I added my.openhab persistence, after two or three days the problems with rrd4j were gone (without doing anything).
The reason for this is that rrd MUST get data within the period that it is storing to disk. In OH, there are fixed periods used for the RRD store - the shortest being 60 seconds. So, if no data is received in a 60 second time period, then RRD will store no data. To ensure data is always recevied within this period, you need to use everyMinute.