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.
    • L
      loganki
      last edited by

      I am very disappointed to learn that vnstat2 is not supported in the 2.3 release. Does anyone know if there are plans to upgrade this to work with 2.3? If not, is anyone interested in being commissioned to make it work with 2.3?

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

        It's among the packages that were waiting for release to be completed before being ported to the new package format. Like NUT and others that didn't make the release cut, I'm sure it will make the transition eventually. And just like NUT, there were a number of people asking for vnstat to be converted while 2.3 was in the beta phase, so the developers know it's a desired package.

        The S in IOT stands for Security

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

          It's the only way I have been able to keep track of monthly bandwidth.
          For all the great things pfsense does, it can't do some of these basics tasks you would think it does.

          1 Reply Last reply Reply Quote 0
          • L
            loganki
            last edited by

            @virgiliomi:

            It's among the packages that were waiting for release to be completed before being ported to the new package format. Like NUT and others that didn't make the release cut, I'm sure it will make the transition eventually. And just like NUT, there were a number of people asking for vnstat to be converted while 2.3 was in the beta phase, so the developers know it's a desired package.

            Thanks for the reply - do you have any information on who the developer is? I tried reaching out to vnstat directly but they have no knowledge of the pFsense upgrade.

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

              I mean one of the pfSense developers, not the vnstat developer.

              Or whoever created the package for pfSense originally… if they happen to still be around (though if they are, they could've been working on that for a while now).

              The S in IOT stands for Security

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

                I haven't tried 2.3 yet othen than install it on a vm, but you probably could manaully install the vnstat2 freebsd package. It wont be intergrated into pfSense like the current 2.2.x one but it should still work. There is a writeup on the forum before the pfSense package was created to give you an idea. Of course this wouldn't be supported at all until an offical package is created.

                1 Reply Last reply Reply Quote 0
                • V
                  Vidmo
                  last edited by

                  Add my support for vnstat2 to make it back into 2.3

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

                    BTW, apparently I was mistaken in my previous statement, and the only package not yet ported that the pfSense developers definitely plan to port is NUT; other packages depend on how broken they might be, and how much work would be involved to convert the package over. Their resources are limited, and they already have a sizable list of things to be fixed/improved upon in pfSense 2.3.1.

                    Dev post about package porting: https://forum.pfsense.org/index.php?topic=109835.msg611555#msg611555

                    Developing thread on manual vnstat installation: https://forum.pfsense.org/index.php?topic=109335.0

                    The S in IOT stands for Security

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

                      I don't think most of us that like vnstat are really stuck on vnstat itself.  It's just that vnstat is the only way in pfsense that we can easily track the monthly usage.  it also is nice enough to let us cycle the month on a specific day like most ISP's do. 
                      If there was another way to do this easily, i would dump vnstat.    It was just so easy and simple and worked.
                        I was always hoping it would make it to the core PFsense somewhere in the graphics/logs.  I still think it should be the part of the base tools for any router. vnstat always seemed like a hack addon instead of being part of core.

                      For now I am waiting on the upgrade until this need is completed.  If someone comes up with a bounty, count me in for support.

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

                        After another post in the other "DIY vnstat" topic, the lightbulb turned on about why vnstat isn't likely on the list to be ported… because of its reliance on php-gd, and all of the dependencies that IT carries along. Those are all packages that would need to be maintained in the pfSense package repository... not likely something the developers want to worry about if they don't have to.

                        SO... I found a javascript-based interface for vnstat. It still serves via a single PHP page, along with some CSS and JS script files, but it looks like graphs and whatnot are done client-side through javascript instead (at least no mention of php-gd being a requirement). The link is in the other topic.

                        The S in IOT stands for Security

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

                          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

                          1 Reply Last reply Reply Quote 0
                          • 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
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.