Monitor used traffic of your VPS

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 :)

Ubuntu

(sample output — screenshot )

Source : DigitalOcean Community

Like what you read? Give Kashif Ahamed a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.