Install the tool bmon and centosbmon for real-time network bandwidth detection in CentOS
First download the rpmforge-release extension rpm package
32-bit operating system: wget http://www.sudu.us/Tools/bmon/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
64-bit operating system: wget http://www.sudu.us/Tools/bmon/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Install rpmforge-release Extension
Rpm-Uhv rpmforge-release-0.3.6-1.el5.rf.i386.rpm or rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Then you can use yum install to install bmon.
Yum-y install bmon
After the installation, run the bmon command to open it.
Bmon-p eth0
Then, bmon will display the monitoring interface. Enter g to open the graphic monitoring bar, and enter d to enable the detailed mode (if not, enlarge the terminal window ).
You can monitor network traffic in shell (with dynamic results)
RX: streaming
TX: Outbound
View in basic mode:
# Bmon-o ascii-p eth0
Of course, you can also output the results to the browser. If you are interested, you can play.
The webpage output command is as follows:
Bmon-I distribution: multicast-o null-O html: path =/var/htdocs/
Then you can use a network server such as ngix to configure the website directory as the output directory. Then you can remotely monitor the network traffic of the server.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.