ScaleScaleScaleScale

Tips / Nginx


3 Monitoring Tools to control Bandwidth Usage on Nginx WebServer

When we are working with Web servers it’s always a very good idea to monitor your traffic, have a few statistics to know what’s going on with your visitors, bandwith usage, network connections, etc. On any Nginx server you can monitor this with a few tools, some of these are command line based, and the others can be viewed from a webpage/browser. Today we will cover command line tools for bandwidth monitoring.

Let’s start:

Requirements: EPEL repo and REMI repo:

nload: is a real time monitoring tool that will help you to see the traffic right in front of your eyes, it can monitor incoming and outgoing traffic. Let’s install nload:

yum install nload -y

iftop: can help you to determine the top bandwidth usage ordered by client, ip address, usage, and much more.  See ‘How to install iftop on CentOS Linux. Let’s install iftop:

yum install iftop -y

iptraf: is another alternative piece of software that can help you to measure network statistics, it can collect information about tcp connections  in all the network interfaces. Let’s install iptraf:

yum install iptraf -y

If you are unable to install any of these tools from EPEL or Remi Repo, you can always check this alternatives:

Popular search terms:

  • nginx bandwidth stat
  • nginx config bandwidth monitor
  • track bandwidth usage nginx
profile

Esteban Borges

Linux Geek, Webperf Addict, Nginx Fan. CTO @Infranetworking

  • Melissa

    Thank you for the ideas about the tools to monitor the servers. They are new names for me at all. And it is great that you have provided the instructions how to work with them.

  • how about Ubuntu server..? any similar than this..?

  • Steffen Beyer

    Shameless plug for the web based category: proper:bytes