日志标签:vnstat

CentOS安装vnstat监控流量并配置vnstat PHP frontend

分类:linux日期:2013-05-31 - 10:06:13评论:1条作者:老谢

CentOS安装vnstat监控流量并配置vnstat PHP frontend

wget https://acelnmp.googlecode.com/files/vnstat-1.10.tar.gz
tar xvzf vnstat-1.10.tar.gz
cd vnstat-1.10/
make && make install
/usr/bin/vnstat -u -i eth0
vim /etc/cron.d/vnstat
0-55/5 * * * *   root   vnstat -u -i eth0
0-55/5 * * * *   root   vnstat --dumpdb -i eth0 >/var/lib/vnstat/vnstat_dump_eth0
wget http://www.sqweek.com/sqweek/files/vnstat_php_frontend-1.5.1.tar.gz
tar -zxf vnstat_php_frontend-1.5.1.tar.gz
mv vnstat_php_frontend-1.5.1.tar.gz vnstat

继续阅读…

Tags: ,