Difference between revisions of "Vnstat"
From SME Server
Jump to navigationJump to search (Add brief description of vnStat, section headings, and categories) |
|||
Line 1: | Line 1: | ||
+ | "vnStat is a network traffic monitor for Linux that keeps a log of daily network traffic for the selected interface(s)." ([http://humdi.net/vnstat/ Read more...]) | ||
+ | |||
How to install vnstat and the the PHP frontent.<br> | How to install vnstat and the the PHP frontent.<br> | ||
[Original post http://forums.contribs.org/index.php?topic=42444]<br> | [Original post http://forums.contribs.org/index.php?topic=42444]<br> | ||
+ | ==Install vnstat== | ||
Get vnstat and install: | Get vnstat and install: | ||
wget http://dag.wieers.com/rpm/packages/vnstat/vnstat-1.4-3.2.el4.rf.i386.rpm | wget http://dag.wieers.com/rpm/packages/vnstat/vnstat-1.4-3.2.el4.rf.i386.rpm | ||
Line 11: | Line 14: | ||
(Ignore the error message you get) | (Ignore the error message you get) | ||
+ | ==Install vnStat PHP FrontEnd== | ||
Get the frontend and configure: | Get the frontend and configure: | ||
cd /home/e-smith/files/ibays/Primary/html/ | cd /home/e-smith/files/ibays/Primary/html/ | ||
Line 28: | Line 32: | ||
Wait and you should see the application working at http://yourserverIP/vnstat_php_frontend-1.4 | Wait and you should see the application working at http://yourserverIP/vnstat_php_frontend-1.4 | ||
+ | |||
+ | ---- | ||
+ | [[Category: Howto]] | ||
+ | [[Category: Administration]] |
Revision as of 15:45, 27 October 2008
"vnStat is a network traffic monitor for Linux that keeps a log of daily network traffic for the selected interface(s)." (Read more...)
How to install vnstat and the the PHP frontent.
[Original post http://forums.contribs.org/index.php?topic=42444]
Install vnstat
Get vnstat and install:
wget http://dag.wieers.com/rpm/packages/vnstat/vnstat-1.4-3.2.el4.rf.i386.rpm yum localinstall vnstat-1.4-3.2.el4.rf.i386.rpm
Add the interfaces you would like to monitor:
vnstat -u -i eth0 vnstat -u -i eth1
(Ignore the error message you get)
Install vnStat PHP FrontEnd
Get the frontend and configure:
cd /home/e-smith/files/ibays/Primary/html/ wget http://www.sqweek.com/sqweek/files/vnstat_php_frontend-1.4.tar.gz tar -xvzf vnstat_php_frontend-1.4.tar.gz cd vnstat_php_frontend-1.4
nano config:
Edit the information about the interfaces you would like to graph:
$iface_list = array('eth0', 'ppp0');
The optional names:
$iface_title['eth0'] = 'Internal'; $iface_title['ppp0'] = 'Internet';
Finnaly set application path:
$vnstat_bin = '/usr/bin/vnstat';
Then change permission on /var/lib/vnstat/* files
chmod 666 /var/lib/vnstat/*;
Wait and you should see the application working at http://yourserverIP/vnstat_php_frontend-1.4