Regression #14418
closedRRD Summary prints zero in all data fields
100%
Description
When RRD Summary tries to fetch data for specific time ranges, the commands it runs fail.
For example it tries to run:
/usr/local/bin/rrdtool fetch '/var/db/rrd/wan-traffic.rrd' AVERAGE -r 86400 -s 'epoch+1682899200s' -e 'epoch+1684972800s'
Which results in the following error:
ERROR: the first entry to fetch should be after 1980
The same command works on previous versions, even on 23.01.
Changing the command to use just the timestamps instead of epoch+<x>s
seems to get output but it's not identical output. Might be close enough, though.
Updated by Jim Pingle almost 2 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Fixed in version 2.1 of the package: https://github.com/pfsense/FreeBSD-ports/commit/0049587898b2c192d95b2d1359941daf96deaccd
Updated by Denny Page almost 2 years ago
The epoch issue appears to be a perverse and long standing (for rrdtool) issue:
Updated by Jim Pingle almost 2 years ago
Denny Page wrote in #note-2:
The epoch issue appears to be a perverse and long standing (for rrdtool) issue:
I saw that. It's also weird that it worked OK on 23.01 but broke on 23.05 and both have rrdtool 1.8.0. The only change in the port was unrelated compile options we don't (and haven't) used for python and ruby support in rrdtool.
Moving away from unix timestamps is ideal, though, since they are also a source of problems on ARMv7: #12338
Updated by Danilo Zrenjanin over 1 year ago
- Status changed from Feedback to Resolved
I tested the version:
RRD_Summary 2.2
It works with no error logs.
I am marking this ticket resolved.