Bug #12338
closedRRD Summary does not report data on 3100
100%
Description
RRD Summary package version 2.0_1 does not report any data on 3100. Upon installing the package, 0 GB is reported on any interface. I tested on amd64 and it works as expected, so this has only been seen on 3100. It has been seen on multiple 3100s.
Files
Updated by Max Leighton over 3 years ago
There are some users on the forum who report that it will begin counting after some time passes, https://forum.netgate.com/topic/161077/solved-rrd-summary-no-data. We have seen a report of a user waiting 3 months and still not seeing data counted there. In my case, I passed quite a bit of traffic and did not see that change.
Updated by aleksei prokofiev over 2 years ago
Tested on 3100 with RRD Summary package version 2.0_2 on 22.05 pfSense release and I see the same issue
Updated by Karl Brown almost 2 years ago
Same issue for me on all the 3100's I've tested.
ntopng package 2.0_2 on pfSense 22.05
Updated by Jim Pingle over 1 year ago
This is because the 3100 is armv7 which is a 32-bit platform and there are some issues with Unix timestamps on there as current timestamps are larger than a 32-bit integer.
This may require a bit of rework of the current code since it is very much based around Unix timestamps. It could probably all be changed to DateTime format as we did with certs, just needs some more thought.
Updated by Jim Pingle over 1 year ago
- Status changed from New to In Progress
- Assignee set to Jim Pingle
After some more digging I found that this isn't related directly to Unix timestamps yet but to rrdtool on ARM. For some reason the CLI version of "rrdtool fetch" is returning the same timestamp for every series which breaks all the calculations. I thought the timestamps were overflowing but that isn't a problem yet, I was thinking of certificate end dates which are already overflowing for long-lived cert end times.
The GUI graphs use PECL rrd_fetch()
instead, which appears to work fine on ARM. As a bonus for converting to that, we can do away with a shell exec and all that entails.
I have a working update here that works well on amd64, arm64, and armv7. Will push it shortly.
There could still be some benefit to using PHP date calculations here but since RRD is using Unix timestamps internally it doesn't seem like that would solve any problems on ARM for now.
Updated by Jim Pingle over 1 year ago
- Status changed from In Progress to Feedback
- % Done changed from 0 to 100
Fixed in version 2.2 of the package: https://github.com/pfsense/FreeBSD-ports/commit/961bbfe5878928af449b4b91f1e486f8a43c2110
Updated by Flole Systems over 1 year ago
There was another bug that was caused when the locale was changed as rrdtool used the wrong decimal separator and PHP misinterpreted it then. That should be fixed by this aswell, just in case someone wants to search for that bug report and mark it fixed.
Updated by Jim Pingle over 1 year ago
Flole Systems wrote in #note-8:
There was another bug that was caused when the locale was changed as rrdtool used the wrong decimal separator and PHP misinterpreted it then. That should be fixed by this aswell, just in case someone wants to search for that bug report and mark it fixed.
I searched a bit but I don't see any issue here in Redmine for that. If you (or anyone else) happens to remember what it was or find the old issue, link it here.