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

    Vnstat2 dead with pFsense 2.3 upgrade :(

    Scheduled Pinned Locked Moved Traffic Monitoring
    28 Posts 9 Posters 8.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.
    • C
      Cino
      last edited by

      @jdillard:

      The "vnStat package" is almost back in it's newer form: https://github.com/pfsense/FreeBSD-ports/commit/a9b4ece25c8f472fba250ed671533305bf884302

      a couple more tweaks and it should show up in the Available Packages list

      Sweetness! Do you have any screenshots by chance?  I was able to get vnstat up and running a while back but im only using the original web interface, not the pages that were created for the pfSense package.

      1 Reply Last reply Reply Quote 0
      • jdillardJ
        jdillard
        last edited by

        This one is 22 days old, but gives you an idea: https://imgur.com/GqvihFX

        1 Reply Last reply Reply Quote 0
        • C
          Cino
          last edited by

          prudy!!! I'm assuming its using the vnstat db? If so, I should be able to copy over my existing db to use in the new interface? I have a years worth of data

          1 Reply Last reply Reply Quote 0
          • jdillardJ
            jdillard
            last edited by

            Yes it just uses the vnstat –json output. In theory you could, it's worth a shot on a VM.

            1 Reply Last reply Reply Quote 0
            • MikeV7896M
              MikeV7896
              last edited by

              Woot! patience is paying off! :)

              The S in IOT stands for Security

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

                ok i am on 2.3.2-DEVELOPMENT (amd64)
                built on Thu Jun 23 12:33:12

                how do i access this ?

                ok got it

                pfsense plus 25.03 super micro A1SRM-2558F
                C2558 32gig ECC  60gig SSD

                1 Reply Last reply Reply Quote 0
                • jdillardJ
                  jdillard
                  last edited by

                  for some reason the builder isn't picking it up, still trying to figure that out. but it's the last step to getting it in snapshots.

                  1 Reply Last reply Reply Quote 0
                  • M
                    MyKroFt
                    last edited by

                    WARNING

                    Just installed this new package today - I had vnstat manually running - It wipes out any databases

                    Make a backup 1st so you can restore backup and get your history back

                    Otherwise it looks good so far

                    Is there a html link that can viewed outside of the pfsense ui like the old vnstat2 could?

                    Thanks for the work
                    Myk

                    1 Reply Last reply Reply Quote 0
                    • jdillardJ
                      jdillard
                      last edited by

                      Were you able to get your history back? I store the database files in /var/db/vnstat and your db files from running manually are likely in /var/lib/vnstat/. It might be possible to copy/move them over.

                      @MyKroFt:

                      Is there a html link that can viewed outside of the pfsense ui like the old vnstat2 could?

                      No there is not.

                      1 Reply Last reply Reply Quote 0
                      • M
                        MyKroFt
                        last edited by

                        @jdillard:

                        Were you able to get your history back? I store the database files in /var/db/vnstat and your db files from running manually are likely in /var/lib/vnstat/. It might be possible to copy/move them over.

                        @MyKroFt:

                        Is there a html link that can viewed outside of the pfsense ui like the old vnstat2 could?

                        No there is not.

                        ok, will leave the old vnstat2 page intact since I already have its dependencies installed and working so I can view that html page from outside my lan

                        as far as the databases they where there in /var/lib/vnstat - I also exportdb and a daily status at 12am as I have had both db and back db in the past get corrupted for some reason.

                        Thanks
                        Myk

                        1 Reply Last reply Reply Quote 0
                        • jdillardJ
                          jdillard
                          last edited by

                          Thanks, MyKroFt.

                          I created a feedback thread in the snapshots board if anyone else wants to give feedback: https://forum.pfsense.org/index.php?topic=114753.0

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

                            How do I get the package? It doesn't show up under "Available Packages"  ???
                            I'm currently on 2.3.1_5.

                            1 Reply Last reply Reply Quote 0
                            • M
                              MyKroFt
                              last edited by

                              have to be on the developer update branch to see it

                              Myk

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

                                Ah, I see. I tried the latest snapshot earlier tonight, but I lost the access to the package manager for some reason, so I went back to 2.3.1_5.

                                1 Reply Last reply Reply Quote 0
                                • M
                                  MyKroFt
                                  last edited by

                                  ya there was a problem there, it was fixed later in the day yesterday

                                  Developer is all fixed now for package manager etc

                                  Myk

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

                                    Thanks for the quick reply. I think I'll wait for the package to make its debut in a stable build. I'm too much of a novice to be messing around with dev builds  :P

                                    1 Reply Last reply Reply Quote 0
                                    • jdillardJ
                                      jdillard
                                      last edited by

                                      MyKroFt, would you mind sharing your db sizes and when they were created (how long they have been collecting data)? I'm just curious about how big the files get with time for people running the embedded image.

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