vnstat
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
vnstat [2016/02/26 21:36] – created luke7858 | vnstat [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=== Installing vnstat === | === 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 | First you will need to install the epel repository | ||
\\ | \\ | ||
Line 8: | Line 11: | ||
\\ | \\ | ||
You will then need to create a database for the tool: | You will then need to create a database for the tool: | ||
+ | \\ | ||
+ | Create the user first: | ||
+ | <sxh bash> | ||
+ | chsh -s /bin/bash vnstat | ||
+ | </ | ||
+ | Create the database: | ||
<sxh bash> | <sxh bash> | ||
runuser -l vnstat -g vnstat -c '/ | runuser -l vnstat -g vnstat -c '/ | ||
Line 17: | Line 26: | ||
\\ | \\ | ||
===Stats overview=== | ===Stats overview=== | ||
+ | ^ Value ^ Description ^ | ||
+ | | rx | Total Received | | ||
+ | | tx | Total Transmitted | | ||
+ | \\ | ||
<sxh bash> | <sxh bash> | ||
vnstat -i eth0 | vnstat -i eth0 | ||
+ | </ | ||
+ | \\ | ||
+ | Example: | ||
+ | <sxh bash> | ||
+ | Database updated: Mon Feb 29 12:31:07 2016 | ||
+ | |||
+ | eth0 since 02/26/16 | ||
+ | |||
+ | rx: 2.52 GiB tx: 2.55 GiB total: | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | Feb ' | ||
+ | | ||
+ | | ||
+ | |||
+ | daily | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
</ | </ | ||
\\ | \\ | ||
Line 24: | Line 62: | ||
<sxh bash> | <sxh bash> | ||
vnstat -i eth0 -d | vnstat -i eth0 -d | ||
+ | </ | ||
+ | \\ | ||
+ | Example output: | ||
+ | <sxh bash> | ||
+ | | ||
+ | | ||
+ | 02/ | ||
+ | 02/ | ||
+ | 02/ | ||
+ | 02/ | ||
+ | | ||
+ | | ||
</ | </ | ||
\\ | \\ |
vnstat.1456522609.txt.gz · Last modified: 2024/05/23 07:26 (external edit)