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

    New Traffic Totals package available for testing

    Scheduled Pinned Locked Moved Traffic Monitoring
    121 Posts 37 Posters 55.2k 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.
    • A
      athurdent
      last edited by

      @chrcoluk:
      There's no export function for this package yet, you have to manually backup the databases.
      vnStat has an export function that could be used to dump the databases to config.xml similar to RRD. But it would need some logic to convert the hardware interface names to the pfSense naming scheme and back. The databases contain something like i.E. igb1 instead of OPT2.

      @BabaBooey:
      What's the content of/var/db/vnstat on your system?

      @jdillard:
      Any chance for a backup function? It would also be nice to use the vnStat daemon instead of a cron job. We lose up to 5 minutes interface data when rebooting, don't we?

      1 Reply Last reply Reply Quote 0
      • B
        BabaBooey
        last edited by

        .igb0 .igb1 .igb2 .igb3 .igb4 .igb5 igb0  igb1  igb2  igb3  igb4  igb5

        1 Reply Last reply Reply Quote 0
        • A
          athurdent
          last edited by

          @BabaBooey:

          .igb0 .igb1 .igb2 .igb3 .igb4 .igb5 igb0  igb1  igb2  igb3  igb4  igb5

          Seems your vnStat databases became corrupted then, could be because of a system crash and reboot. Or you HDD could be dying.

          1 Reply Last reply Reply Quote 0
          • B
            BabaBooey
            last edited by

            I had a couple of unexpected power failures earlier this winter, due to a space heater, could that be it?
            My pfsense box(Netgate SG-4860) seems to be working just fine, so the hardware should be fine, I hope so anyway :)
            Is there a way to empty the db and start anew? If so, how do I do that?

            1 Reply Last reply Reply Quote 0
            • A
              athurdent
              last edited by

              I think the switch Reset Graphing Data should work. If not you can always delete all the files in the vnstat directory to start over.

              Power failures are a good reason for databases to get corrupted, yes.

              1 Reply Last reply Reply Quote 0
              • B
                BabaBooey
                last edited by

                Thank you I really appreciate your help :D

                1 Reply Last reply Reply Quote 0
                • GentleJoeG
                  GentleJoe
                  last edited by

                  Is there a way to have the traffic graph data enabled between power reboots?

                  1 Reply Last reply Reply Quote 0
                  • D
                    doktornotor Banned
                    last edited by

                    @Gentle:

                    Is there a way to have the traffic graph data enabled between power reboots?

                    ??? ??? ???

                    1 Reply Last reply Reply Quote 0
                    • GentleJoeG
                      GentleJoe
                      last edited by

                      @doktornotor:

                      @Gentle:

                      Is there a way to have the traffic graph data enabled between power reboots?

                      ??? ??? ???

                      In the Total Traffic Stats package, on a reboot, the graphing isn't enabled. I have to re-enable it.
                      Even after 'save as defaults' is selected.

                      1 Reply Last reply Reply Quote 0
                      • D
                        doktornotor Banned
                        last edited by

                        Maybe try the "Save as defaults" button

                        1 Reply Last reply Reply Quote 0
                        • GentleJoeG
                          GentleJoe
                          last edited by

                          @doktornotor:

                          Maybe try the "Save as defaults" button

                          Why didn't I think of that????  ::)

                          1 Reply Last reply Reply Quote 0
                          • R
                            romainp
                            last edited by

                            Hi,
                            I got also the bug where the cron job disappear. Also only the option "Disable Graphing" appear but no more the "enable" option. Tries to remove and reinstall with the same result. The issue come after the bug where the databases of the vnstat tool were corrupted.
                            But what a great tool! :)
                            Thanks!

                            1 Reply Last reply Reply Quote 0
                            • GentleJoeG
                              GentleJoe
                              last edited by

                              After every single reboot, this is displayed.
                              No matter what I have tried. I have removed and re-installed the package.

                              Capture.PNG
                              Capture.PNG_thumb

                              1 Reply Last reply Reply Quote 0
                              • GentleJoeG
                                GentleJoe
                                last edited by

                                Works now on the most recent 2.4 Beta update.

                                1 Reply Last reply Reply Quote 0
                                • E
                                  emilio.cellametisnet.it
                                  last edited by

                                  Hi

                                  i want to give this tool to an user not administrator,

                                  but in the limited menu, i cannot see the graph.

                                  the graph appear completely only if i logon as admin

                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    anzak84
                                    last edited by

                                    How restore "Interactive Graph" from *.csv file to  Status_Traffic_Totals?

                                    1.jpg
                                    1.jpg_thumb

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      splice42
                                      last edited by

                                      I'm on pfSense 2.3.2-release-p1 and just upgraded from traffic totals 1.1_1 to 1.2_1. Now when I look at traffic totals, the "interactive graph" portion is smaller (much less height), has no ticks on the y axis and is as a whole pretty much useless. The table with the actual values shows my data is fine, ranging from 140GB to 900GB. I'd expect to see a scale that reflects that. See attachment. Is there a fix for this? If not, can I downgrade back to a working version?

                                      bad_graph.png
                                      bad_graph.png_thumb

                                      1 Reply Last reply Reply Quote 0
                                      • G
                                        GeoffW
                                        last edited by

                                        Under pfsense v2.3.3 the Traffice Totals graph has been working okay for me (including good height, ticks on the y-axis).

                                        1 Reply Last reply Reply Quote 0
                                        • X
                                          xRadeon
                                          last edited by

                                          Does anyone know if you can migrate data from this package to a new install? Looks like the data isn't included in the AutoConfigBackup backup (that would be sweet if it could be included in that backup!  8) ). I know you can export the data as a CSV file, but doesn't look like you can import that data at all.

                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            athurdent
                                            last edited by

                                            For the same hardware you can just backup everything from /var/db/vnstat and copy it to the new install. For different hardware I sucessfully used the example from the man page at http://humdi.net/vnstat/man/vnstat.html
                                            From the top of my head, on the old hardware it was something like
                                            vnstat -i em1 –exportdb > lan.txt
                                            and on the new hardware
                                            vnstat -i igb1 --importdb lan.txt

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