Vnstat

From Leo's Notes
Revision as of 22:09, 11 May 2013 by Leo (talk | contribs)
This page was last edited on 11 May 2013, at 22:09.

Installation

The following steps should work for CentOS/ScientificLinux/RHEL.

wget http://humdi.net/vnstat/vnstat-1.11.tar.gz
tar -xzf vnstat-1.11.tar.gz
cd vnstat-1.11
make
make install
vnstat --testkernel
/bin/cp examples/init.d/centos/vnstat /etc/init.d/vnstat
chkconfig --levels 234 --add vnstat
vnstat -u -i eth0
/etc/init.d/vnstat start