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

    Traffic Totals - Incorrect totals in Month view

    Scheduled Pinned Locked Moved Traffic Monitoring
    6 Posts 2 Posters 886 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.
    • T
      tomv
      last edited by tomv

      I'm running on 2.4.4-RELEASE-p3 (amd64) and the Traffic Totals for the month so far are incorrect.
      The totals have been accurate up until this month.

      The Daily view shows what I expect but the Monthly doesn't add up.

      Here's the Daily view

      2019-08-18_16-35-49.png

      And here's the Monthly view

      2019-08-18_16-37-15.png

      1 Reply Last reply Reply Quote 0
      • T
        tomv
        last edited by tomv

        I restarted the vnstat service and notived that the monthly totals has increased a bit
        I don't know when this increased happened.

        Since the daily counts look correct, is there a way to have it reread it's daily totals and rebuild the monthly totals?

        I tried "--rebuildtotal" from the command line but that didn't seem to do anything

        Here are my latest totals

        daily

        2019-08-19_11-41-01.png

        monthly

        2019-08-19_11-41-21.png

        1 Reply Last reply Reply Quote 0
        • P
          pwnell
          last edited by

          Did you perhaps change the start day value for the monthly totals? I know when I changed mine it changed the totals, especially if it does not align with your start of the month of day 1.

          T 1 Reply Last reply Reply Quote 0
          • T
            tomv @pwnell
            last edited by

            @pwnell yes it was.. now sure why, but it was changed to the 15th.
            Is there a way to have it rebuild its monthly calculation?

            1 Reply Last reply Reply Quote 0
            • P
              pwnell
              last edited by

              Not as far as I am aware. The only option I know of is

              vmstat -u
              

              But that updates all the DB entries. AFAIK the only way would be to manipulate the RRD database directly - not sure how feasible that is but it should be possible in theory.

              1 Reply Last reply Reply Quote 0
              • P
                pwnell
                last edited by

                There is one way you can do it. Do this:

                vnstat --exportdb
                

                edit the output to correct the month values from the dailies (you will have to do this manually)

                reimport with:

                vnstat --importdb
                

                Did not try it but could work...

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.