I turned on logging now.
First finding: Seems like /var/lib/openhab2/config/org/openhab/rrd4j.config contained some old archives which I defined during testing. I cleared those now.
On startup I can now see that rrd4j uses it’s default archives default_numeric and default_other. But there were no items configured:
2017-10-19 09:51:18.065 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Created default_other = GAUGE heartbeat = 3600 min/max = NaN/NaN step = 1 6 archives(s) = [ MAX xff = 0.999 steps = 1 rows = 3600 MAX xff = 0.999 steps = 10 rows = 1440 MAX xff = 0.999 steps = 60 rows = 1440 MAX xff = 0.999 steps = 900 rows = 2880 MAX xff = 0.999 steps = 21600 rows = 1460 MAX xff = 0.999 steps = 86400 rows = 3650] 0 items(s) = []
2017-10-19 09:51:18.073 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Created default_numeric = GAUGE heartbeat = 60 min/max = NaN/NaN step = 60 6 archives(s) = [ AVERAGE xff = 0.5 steps = 1 rows = 480 AVERAGE xff = 0.5 steps = 4 rows = 360 AVERAGE xff = 0.5 steps = 14 rows = 644 AVERAGE xff = 0.5 steps = 60 rows = 720 AVERAGE xff = 0.5 steps = 720 rows = 730 AVERAGE xff = 0.5 steps = 10080 rows = 520] 0 items(s) = []
So I added the following line to my rrd4j.cfg for testing:
default_numeric.items=AUSSENTEMPERATUR,HEIZUNG_DUSCHE_RAUM_SOLL
Now I see the following on startup:
2017-10-19 23:08:22.228 [DEBUG] [sistence.rrd4j.internal.RRD4jService] - Created default_numeric = GAUGE heartbeat = 60 min/max = NaN/NaN step = 60 6 archives(s) = [ AVERAGE xff = 0.5 steps = 1 rows = 480 AVERAGE xff = 0.5 steps = 4 rows = 360 AVERAGE xff = 0.5 steps = 14 rows = 644 AVERAGE xff = 0.5 steps = 60 rows = 720 AVERAGE xff = 0.5 steps = 720 rows = 730 AVERAGE xff = 0.5 steps = 10080 rows = 520] 2 items(s) = [AUSSENTEMPERATUR HEIZUNG_DUSCHE_RAUM_SOLL ]
2017-10-19 23:08:22.235 [DEBUG] [org.openhab.persistence.rrd4j ] - ServiceEvent REGISTERED - {org.openhab.core.persistence.PersistenceService}={service.pid=org.openhab.rrd4j, component.name=org.openhab.persistence.rrd4j, component.id=180, default_numeric.items=AUSSENTEMPERATUR,HEIZUNG_DUSCHE_RAUM_SOLL, service.id=300, service.bundleid=191, service.scope=bundle} - org.openhab.persistence.rrd4j
2017-10-19 23:08:22.329 [DEBUG] [org.openhab.persistence.rrd4j ] - ServiceEvent REGISTERED - {javax.servlet.ServletContext}={osgi.web.symbolicname=org.openhab.persistence.rrd4j, osgi.web.version=1.10.0, osgi.web.contextpath=/, service.id=303, service.bundleid=191, service.scope=singleton} - org.openhab.persistence.rrd4j
2017-10-19 23:08:22.343 [DEBUG] [org.openhab.persistence.rrd4j ] - ServiceEvent REGISTERED - {org.openhab.ui.chart.ChartProvider}={component.name=org.openhab.persistence.rrd4j.chartservlet, component.id=181, service.id=302, service.bundleid=191, service.scope=bundle} - org.openhab.persistence.rrd4j
So this doesn’t look too bad. Seems like the two items get assigned to the default_numeric archive and two “event listeners” get registered.
But rrd4j still doesn’t store anything. No rrd files are being generated.
At the same time mapdb works just fine:
2017-10-19 23:11:05.523 [DEBUG] [pdb.internal.MapDBPersistenceService] - store called for AUSSENTEMPERATUR
2017-10-19 23:11:05.527 [DEBUG] [pdb.internal.MapDBPersistenceService] - Stored 'AUSSENTEMPERATUR' with state '11.700000000000001' in mapdb database
Any ideas?
Thanks!
Michael