vnstat
This is an old revision of the document!
Installing vnstat
vnstat is a console-based network traffic monitor. It keeps a log of hourly, daily and monthly network traffic for the selected interface(s). The traffic information is analyzed from the proc filesystem. That way vnStat can be used even without root permissions.
First you will need to install the epel repository
You can then install the tool with
yum install vnstat
You will then need to create a database for the tool:
runuser -l vnstat -g vnstat -c '/usr/bin/vnstat -u -i eth0'Once this has been done we will remove shell access for the user:
chsh -s /sbin/nologin vnstat
Stats overview
vnstat -i eth0
Daily Stats
vnstat -i eth0 -d
Real time view
vnstat -i eth0 -l
vnstat.1456522760.txt.gz · Last modified: 2024/05/23 07:26 (external edit)