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

Ubuntu
Ubuntu

(sample output — screenshot )

Source : DigitalOcean Community

realmau5

realmau5.com

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store