jsvnstat is a web frontend for vnstat. It is largely based on javascript, so you can easily switch views without reloading the entire page. The graph is interactive, just hover over a datapoint to see what I'm talking about.
You can switch between line- and bar-graphs. You can also change settings such as decimal numbers in the settings.php file.
|
|
static, as there is no vnstat on this server ^^ |
 |
|
current version: 1.9
|
License: GPLv3
libraries under their respective licenses
|
 |

Requirements
- vnstat installed and working
- vnstat database created (vnstat -u -i eth0)
- running webserver with PHP support
- vnstat executable from the web (check PHP security settings)
Installation
- Copy all provided files to your webserver
- Apply appropriate permissions (chown -R www-data some/where/jsvnstat)
- Adjust settings.php if necessary
License
jsvnstat is published under the GPLv3, libraries under their respective licenses.
Libraries used
flot and crir
Thanks for your little java script for vnstat. This is what i am searching for. Easy, small and all needed information. I hope i find out to use it for more then one interface(eth0, eth1, eth2, br1)
Please go further with your ideas.
Mike
I think you can change the interface to eth1 in /var/www/jsvnstat/settings.php.
Actually I think its line 5 of /etc/vnstat.conf.
Great tool, thanks.