Skip to content

Instantly share code, notes, and snippets.

@philsch
Created July 3, 2016 09:50
Show Gist options
  • Save philsch/9d9084311226acb0f63ab7c00fa9c2d5 to your computer and use it in GitHub Desktop.
Save philsch/9d9084311226acb0f63ab7c00fa9c2d5 to your computer and use it in GitHub Desktop.
Quick Server traffic monitoring (Ubuntu)
  1. install vnstat and vnstati
  2. add cronjob
  3. create simple page on webserver that access created files
*/5 * * * * www vnstati -s -i eth0 -o /var/www/traffic/1.png
*/5 * * * * www vnstati -h -i eth0 -o /var/www/traffic/2.png
*/5 * * * * www vnstati -m -i eth0 -o /var/www/traffic/3.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment