Sep 13
I was troubleshooting an issue with a Linux machine and I needed to look at all aspects of the issue. That meant looking at the NIC activity on the particular machine. I didn’t want to spend too much time installing SNMP agents to gather statistics.
Enter vnStat! This awesome tool is installed under one minute and allowed me to do exactly what I needed. The beauty of vnStat is that you can do live monitoring on the host using the following:
$ vnstat -l
The great part about this tool is that it’ll sample the traffic for 5 seconds and calculate the traffic for that moment:
$ vnstat -tr
rx 1.28 kB/s 9 packets/s
tx 0.81 kB/s 9 packets/s
Read more about vnStat on their website!