Vnstat2 dead with pFsense 2.3 upgrade :(
-
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.
-
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 "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
-
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.
-
This one is 22 days old, but gives you an idea: https://imgur.com/GqvihFX
-
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
-
Yes it just uses the
vnstat –json
output. In theory you could, it's worth a shot on a VM. -
Woot! patience is paying off! :)
-
ok i am on 2.3.2-DEVELOPMENT (amd64)
built on Thu Jun 23 12:33:12how do i access this ?
ok got it
-
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.
-
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 -
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.
Is there a html link that can viewed outside of the pfsense ui like the old vnstat2 could?
No there is not.
-
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.
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 -
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
-
How do I get the package? It doesn't show up under "Available Packages" ???
I'm currently on 2.3.1_5. -
have to be on the developer update branch to see it
Myk
-
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.
-
ya there was a problem there, it was fixed later in the day yesterday
Developer is all fixed now for package manager etc
Myk
-
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
-
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.