Monitor used traffic of your VPS

Kashif Ahamed
Mar 28, 2016 · 1 min read

I was looking for a way to monitor my VPS for a while as my hosting provider(DigitalOcean) only lets me check the bandwidth details in a graph form which is not cool :(

I found this this neat command-line tool called vnStat.

Assuming you have an Ubuntu server you could configure this awesome tool in a jiffy

  1. SSH in to your server and type
sudo apt-get install vnstat
  1. Configure vnstat (assuming you have eth0 network interface) using type
sudo vnstat -u -i eth

to check your stat type

vnstat -i eth0 

enjoy :)

(sample output — screenshot )

Source : DigitalOcean Community


Kashif Ahamed

Written by

Google Cloud Specialist - Full Stack Developer - Part-time Blogger