• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

RRD Summary calculating last month wrong

Scheduled Pinned Locked Moved Traffic Monitoring
4 Posts 2 Posters 1.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    chalur
    last edited by Mar 2, 2016, 6:43 PM

    So when I looked on feb 29th, I was seeing that I had used about 290 GB of data in the current month. However, now that it's now march 2nd, I would think the number for "last month" would be pretty close to what "current month" was on the 29th, but instead it's showing that I used about 3.45 TB of data.

    Screenshot of current stats:
    https://i.imgur.com/VDjq5p2.png

    Screenshot of corresponding RRD graphs:
    https://i.imgur.com/WOrlGTn.png

    The graphs pretty clearly show that I haven't used anywhere near 3.5 TB, so I assume the summary tool is calculating something wrong. Is this a bug other people have run into and/or is there something I've configured wrong?

    1 Reply Last reply Reply Quote 0
    • J
      jdillard
      last edited by Mar 3, 2016, 12:23 AM

      I have a feeling it is the RRD Summary package, as the code built into the RRD graphing utilities is probably better than hand coding from rrdfetch if you want to obtain totals for a time period. Here is the RRD Summary code:

      https://github.com/pfsense/FreeBSD-ports/blob/devel/sysutils/pfSense-pkg-RRD_Summary/files/usr/local/www/status_rrd_summary.php#L47

      1 Reply Last reply Reply Quote 0
      • C
        chalur
        last edited by Mar 3, 2016, 1:11 AM

        What's interesting is it calculates this month fine, just not last month. I wonder if something changed about the way it formats dates or the proper resolution for the data is different. Either way, I don't know nearly enough to have any hope of fixing that myself.

        1 Reply Last reply Reply Quote 0
        • J
          jdillard
          last edited by Dec 5, 2016, 6:17 PM

          Razzfazz was kind enough to submit a PR: https://github.com/pfsense/FreeBSD-ports/pull/185

          It just got merged, so you should be able to test in snapshots soon enough.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            [[user:consent.lead]]
            [[user:consent.not_received]]