How to monitor network traffic on Linux server
Monitoring the network traffic of an entire network infrastructure is a very important task for every Linux system administrator.Server admin needs to see what’s going on with the network, who’s using the bandwidth. There are many linux command line tools that can be used to monitor the network usage.Some of the commands, show the bandwidth used by individual processes. This makes it easy to detect a process that is overusing network bandwidth.
Here is a list of the commands
nload is a console application which monitors network traffic and bandwidth usage in real time. It visualizes the in- and outgoing traffic using two graphs and provides additional info like the total amount of transfered data and min/max network usage. So if you want to just check total bandwidth usage without details of individual processes, then nload will be great.
You can install nloadusing yum on centos server.
yum install nload -y
Once install process completed then you have to monitor Bandwidth uses using nload command.
[root@localhost ~]# nload
iftop is a command-line system monitor tool that produces a frequently updated list of network connections.iftop is able to filter the traffic and report bandwidth usage over selected host connections as specified by the filter.