pfSense Gold Subscription

Author Topic: New Traffic Totals package available for testing  (Read 20276 times)

0 Members and 1 Guest are viewing this topic.

Offline jdillard

  • Administrator
  • Sr. Member
  • *****
  • Posts: 534
  • Karma: +124/-1
  • Web Dude
    • View Profile
    • Personal Website
Re: New Traffic Totals package available for testing
« Reply #60 on: July 26, 2016, 12:13:25 pm »
Thanks for all the help and for being patient!

I'll try to continue to improve it (the known issues) over time.

Offline Cino

  • Hero Member
  • *****
  • Posts: 1516
  • Karma: +61/-2
    • View Profile
Re: New Traffic Totals package available for testing
« Reply #61 on: July 26, 2016, 12:42:44 pm »
@jdillard Just wanted to let you know that I upgraded to pfSense 2.3.2 today and installed the new Traffic Totals package. It picked up my current vnstat DB with no issues. Between this package and the vnStat Web Interface, I'm able to display a years worth of data if needed.

Btw great work on the new package!

Offline topoldo

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: New Traffic Totals package available for testing
« Reply #62 on: August 09, 2016, 09:27:27 am »
Two things make me to stay away from 2.3.x version until now, the most important being the lack of the possibility to receive by email the report of the daily activity of my pfSense bridge-firewall.
Now, I went back from vacations, and I found this thread. This allow to me to try to re-test pfSense 2.3.x: many hanks to jdillard!
Anyway, maybe I missed something, but my dumb question is now: "Does this package allow to send a daily mail with the graph report(s) of the activity of the interface(s) or it simply gives the opportunity to view 'online' the activity of a pfSense device along a large period of time?"

Thanx,
Topoldo

Offline MyKroFt

  • Jr. Member
  • **
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: New Traffic Totals package available for testing
« Reply #63 on: August 09, 2016, 04:20:26 pm »
It just to view web pages at the moment - but

I installed the mailreport plugin and daily run following command:

/usr/local/bin/vnstat -i re0 ; /usr/local/bin/vnstat -i re0 --exportdb   

you can run any vnstat options you want and multi commands by using ";" between them

and they show up at exactly 12am/daily that I have it set for

take a look at the mailreport plugin - i think it will do what you want/need

Myk


Two things make me to stay away from 2.3.x version until now, the most important being the lack of the possibility to receive by email the report of the daily activity of my pfSense bridge-firewall.
Now, I went back from vacations, and I found this thread. This allow to me to try to re-test pfSense 2.3.x: many hanks to jdillard!
Anyway, maybe I missed something, but my dumb question is now: "Does this package allow to send a daily mail with the graph report(s) of the activity of the interface(s) or it simply gives the opportunity to view 'online' the activity of a pfSense device along a large period of time?"

Thanx,
Topoldo

Offline pwnell

  • Full Member
  • ***
  • Posts: 161
  • Karma: +1/-0
    • View Profile
Re: New Traffic Totals package available for testing
« Reply #64 on: August 12, 2016, 03:34:11 pm »
Perhaps a very stupid question - but I am on 2.3.2-RELEASE (x64), and I have just installed Status_Traffic_Totals 1.1_1.  It works, however I do not see vnstat anywhere - it is not available in the Available Packages list, and it is not part of my cron jobs.  Hence no data is being gathered.

I am to set up vnstat manually?

Offline BabaBooey

  • Newbie
  • *
  • Posts: 15
  • Karma: +1/-0
    • View Profile
Re: New Traffic Totals package available for testing
« Reply #65 on: August 12, 2016, 03:35:51 pm »
Vnstat is included as far as I can tell. I didn't need to install any other packages, works fine here :)
When you just installed it, you need to give it some time for it to gather the data.

Offline jdillard

  • Administrator
  • Sr. Member
  • *****
  • Posts: 534
  • Karma: +124/-1
  • Web Dude
    • View Profile
    • Personal Website
Re: New Traffic Totals package available for testing
« Reply #66 on: August 12, 2016, 03:59:33 pm »
vnStat is a just package dependency, the package shows up in Status > Traffic Totals and you have enable graphing in there. You can also run vnStat commands from the command prompt if you want after that.

Once you enable it, you should have:

Code: [Select]
*/5 * * * * root /usr/local/bin/vnstat -u
in your cron jobs (you might have to install the Cron package to see it)
« Last Edit: August 12, 2016, 04:06:10 pm by jdillard »

Offline pwnell

  • Full Member
  • ***
  • Posts: 161
  • Karma: +1/-0
    • View Profile
Re: New Traffic Totals package available for testing
« Reply #67 on: August 12, 2016, 05:26:18 pm »
Aha now I see.  I had to first disable it, then enable it, and only then did it add the vnstat cron entry.  Before I explicitly disabled it and reenabled it, the crontab entry was not there.  After I initially installed the package, it was enabled by default.  Perhaps a small bug?

Thanks!

Offline jdillard

  • Administrator
  • Sr. Member
  • *****
  • Posts: 534
  • Karma: +124/-1
  • Web Dude
    • View Profile
    • Personal Website
Re: New Traffic Totals package available for testing
« Reply #68 on: August 12, 2016, 05:30:24 pm »
Did you have vnStat already installed before you messed with the Traffic Totals package?

Offline pwnell

  • Full Member
  • ***
  • Posts: 161
  • Karma: +1/-0
    • View Profile
Re: New Traffic Totals package available for testing
« Reply #69 on: August 12, 2016, 05:59:20 pm »
Quite possible as I had vnstat2 installed, then upgraded from 2.1 to 2.2 before, which dropped support for vnstat2.  I never cleaned it out manually.

Online johnpoz

  • Hero Member
  • *****
  • Posts: 14443
  • Karma: +1337/-200
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: New Traffic Totals package available for testing
« Reply #70 on: September 07, 2016, 06:22:13 pm »
So I on accident deleted the vnstat cron job.  Not I can seem to get it back..  I have reinstalled the package, I have deleted the package and then reinstalled.  No cron.  I have disabled the cumulative graphing and then re-enabled it.. Nothing.  Reset all graph data.. Just not seem to put this cron job back in??

I can manually put back, but shouldn't a reinstall of the package check that the cron is there.  Or a turn off and back on of the cumulative put it back, etc..?
- An intelligent man is sometimes forced to be drunk to spend time with his fools.
- Please don't PM me for personal help
- if you want to say thanks applaud or https://www.freebsdfoundation.org/donate/
1x SG-2440 2.3.4_p1 (work)
1x SG-4860 2.4.2-RELEASE (home)

Offline jdillard

  • Administrator
  • Sr. Member
  • *****
  • Posts: 534
  • Karma: +124/-1
  • Web Dude
    • View Profile
    • Personal Website
Re: New Traffic Totals package available for testing
« Reply #71 on: September 15, 2016, 12:41:18 pm »
I can manually put back, but shouldn't a reinstall of the package check that the cron is there.  Or a turn off and back on of the cumulative put it back, etc..?

It should, that's odd behavior that it won't add a cron on re-install. I'll have to look into it, it's related to #14 on the known issues list.
« Last Edit: September 15, 2016, 12:45:00 pm by jdillard »

Online johnpoz

  • Hero Member
  • *****
  • Posts: 14443
  • Karma: +1337/-200
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: New Traffic Totals package available for testing
« Reply #72 on: September 15, 2016, 02:04:56 pm »
Well I can leave it as and see if it shows up when new version comes out, etc.
- An intelligent man is sometimes forced to be drunk to spend time with his fools.
- Please don't PM me for personal help
- if you want to say thanks applaud or https://www.freebsdfoundation.org/donate/
1x SG-2440 2.3.4_p1 (work)
1x SG-4860 2.4.2-RELEASE (home)

Offline maverick_slo

  • Hero Member
  • *****
  • Posts: 809
  • Karma: +37/-2
    • View Profile
Re: New Traffic Totals package available for testing
« Reply #73 on: October 05, 2016, 01:07:24 pm »
Hello!

Are any updates planned to make it to release that will happen soon?
Like correct iface names :) ?

Thanks!

Offline drathus

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: New Traffic Totals package available for testing
« Reply #74 on: October 07, 2016, 11:07:40 am »
#9a) NanoBSD image is untested at this time, but should work. Data loss after a reboot needs to also be tested (actually, I may be able to tie the data into backups).

Running on a modified Firebox, and I can confirm that it works on a nanoBSD image. However, yes, it's losing all data on reboot.

Edit: punctuation