Netgate SG-1000 microFirewall

Author Topic: Vnstat added to package tree  (Read 28030 times)

0 Members and 1 Guest are viewing this topic.

Offline Perry

  • Hero Member
  • *****
  • Posts: 1152
  • Karma: +1/-0
    • View Profile
Vnstat added to package tree
« on: February 09, 2009, 03:49:34 pm »
Why now
Bjorge Dijkstra updated his php-frontend to vnstat with svg support and I do like the quick overview it gives.

What is it
vnStat is a network traffic monitor
vnStat isn't a packet sniffer
Since vnStat is console mode only I created this script to make a 'nice' report of the data collected by vnStat

Faq
- Do to my noob php skills every nic is added on install. So if a nic is added to your pfSense box later on remove the package and install again.
- To clear database for a nic, delete it from /var/db/vnstat/
- update happens every minute.
« Last Edit: February 09, 2009, 03:55:09 pm by Perry »
/Perry
doc.pfsense.org

Offline dvserg

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5257
  • Karma: +53/-0
    • View Profile
    • My Homepage
Re: Vnstat added to package tree
« Reply #1 on: February 09, 2009, 03:57:10 pm »
Good job. I'm like this  ;D

Offline AudiAddict

  • Full Member
  • ***
  • Posts: 201
  • Karma: +0/-0
    • View Profile
Re: Vnstat added to package tree
« Reply #2 on: February 10, 2009, 04:14:57 am »
A stupid question, but do I need some kind of monitoring agent to run in order to get this package to work and collect data?

Or is installing the package come with the front end + collecting data agent? Is this package considered stable for production envoirments?




Offline Perry

  • Hero Member
  • *****
  • Posts: 1152
  • Karma: +1/-0
    • View Profile
Re: Vnstat added to package tree
« Reply #3 on: February 10, 2009, 04:37:29 am »
Quote
Or is installing the package come with the front end + collecting data agent
Correct

Quote
Is this package considered stable for production envoirments?
I would say yes, I have been using vnstat with php frontend for some time, But as pfSense user do have a huge variety of setup's it's hard to mark it stable right away.
For the current status of vnstat http://humdi.net/vnstat/TODO
/Perry
doc.pfsense.org

Offline AudiAddict

  • Full Member
  • ***
  • Posts: 201
  • Karma: +0/-0
    • View Profile
Re: Vnstat added to package tree
« Reply #4 on: February 11, 2009, 09:39:43 am »
Hey Perry,

I've installed vnstat on three pfsense machines, all of them seem to collect data fine, but the graphs graphics do not work.

It does show all the data, day, hour in tables etc, but it's not displaying the graphs on any of the three firewalls.

I've tested with firefox and internet explorer on three different workstations. Pfsense version 1.2.1-RC4 and 1.2.2 and 1.2.0

I do not have the php frontend package installed like you do btw, just the vnstat package.

Any idea's what's wrong? The graphs seem to stay gray..and IE shows loading for ages..as if it's not able to build the graph. This happends on all three of the firewalls.

If needed I can show you some pictures or give you live access to the vnstat page :)
« Last Edit: February 11, 2009, 09:41:52 am by AudiAddict »

Offline Perry

  • Hero Member
  • *****
  • Posts: 1152
  • Karma: +1/-0
    • View Profile
Re: Vnstat added to package tree
« Reply #5 on: February 11, 2009, 10:16:10 am »
Prolly the old version of the php frontend you are using, 1.4.1 is the one with svg support.
Wouldn't the package have been easier to use :P ;D 
/Perry
doc.pfsense.org

Offline AudiAddict

  • Full Member
  • ***
  • Posts: 201
  • Karma: +0/-0
    • View Profile
Re: Vnstat added to package tree
« Reply #6 on: February 13, 2009, 04:23:32 am »
I don't understand your reply Perry.

- I just installed the vnstat package from the pfsense package list
- Php frontend is included in the vnstat package  I assume?
- If the php frontend is not installed, what do I need to do to get this working?

Offline Perry

  • Hero Member
  • *****
  • Posts: 1152
  • Karma: +1/-0
    • View Profile
Re: Vnstat added to package tree
« Reply #7 on: February 13, 2009, 04:34:42 am »
Hmm... You got a PM
/Perry
doc.pfsense.org

Offline jzsjr

  • Jr. Member
  • **
  • Posts: 91
  • Karma: +0/-0
    • View Profile
Re: Vnstat added to package tree
« Reply #8 on: February 13, 2009, 03:15:52 pm »
Is there anyway to have a return to dashboard link or something of that nature to return one to the pfsense gui?

thanks,
Jim

Offline Perry

  • Hero Member
  • *****
  • Posts: 1152
  • Karma: +1/-0
    • View Profile
Re: Vnstat added to package tree
« Reply #9 on: February 13, 2009, 03:33:32 pm »
I just open it in a new tab window.
Adding a go back link would mean adding something to the php-frontend and I am not sure i want to.
/Perry
doc.pfsense.org

Offline Cino

  • Hero Member
  • *****
  • Posts: 1516
  • Karma: +61/-2
    • View Profile
Re: Vnstat added to package tree
« Reply #10 on: February 16, 2009, 12:30:47 pm »
Perry thanks for the package!! I've manually added vnstat to my box but i prefer a pkg install i ever had to reformat my box