Navigation

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

    Traffic Totals - Incorrect totals in Month view

    Traffic Monitoring
    2
    6
    207
    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

                Products

                • Platform Overview
                • TNSR
                • pfSense
                • Appliances

                Services

                • Training
                • Professional Services

                Support

                • Subscription Plans
                • Contact Support
                • Product Lifecycle
                • Documentation

                News

                • Media Coverage
                • Press
                • Events

                Resources

                • Blog
                • FAQ
                • Find a Partner
                • Resource Library
                • Security Information

                Company

                • About Us
                • Careers
                • Partners
                • Contact Us
                • Legal
                Our Mission

                We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                Subscribe to our Newsletter

                Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                © 2021 Rubicon Communications, LLC | Privacy Policy