"Unix/linux Network log analysis and Traffic monitoring" new book listing one months, sales ranked TOP 10, thank you for your support, there will be a heavy new book launch, 2015 Happy New Year!650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/C0/wKioL1SkpVfChn_nAAaBy3tWQs4478.jpg "title=" screen shot 2015-01-01 a.m. 8.44.22.png "alt=" Wkiol1skpvfchn_naaaby3twqs4478.jpg "/>This article is from t
Sometimes our customers will find that the server or VPS network is slow, and further find that a lot of bandwidth is occupied, some customers so far do not know how to do. Is there a simple way to figure out which program (or process) is taking up the bandwidth? Linux monitors the flow of small tools, such as Iftop, Iptraf, Ifstat, Darkstat, Bwm-ng, Vnstat, and so on, mostly statistics and monitoring network card
TC is very powerful ah, a lot of so-called hardware routers, are based on this.TC IntroductionIn Linux, TC has two control methods CBQ and HTB.HTB are designed to replace CBQ. It is a hierarchical filtering framework. TC consists of three basic constituent blocks: Queue rules Qdisc (queueing discipline), Class (classes), and classifiers (classifiers)Queue (queueing discipline): Used to control the network transmit and receive speed. With queues,
."), 0); memset (buf, 0x00, Bufsiz);while (len = recv (CLIENT_SOCKFD, buf, Bufsiz, 0)) > 0){Buf[len]= ' ";printf ("Message from client=[%s]\n", buf);}Close (CLIENT_SOCKFD);}Close (SERVER_SOCKFD);return 0;}
2 Create a client using the Telnet command in Linux
Create a new shell script netstat_nap.sh that contains only one valid command Netstat-nap|head-n 2;netstat-nap|grep 8000.
Open a Linux termina
are 0.60KB, Total is 1.32KB. The Check Interval is 43s | In=0.72kb;1200;1700;0;0 Out=0.60kb;1500;1800;0;0 Total=1.32kb;2700;3500;0;0 Interval=43s;1200;1800;0;0Where red is the IP address of the monitored end.4,vi/usr/local/nagios/etc/nrpe.cfg AddCommand[check_traffic]=/usr/local/nagios/libexec/check_traffic.sh-v 2c-c public-h 192.168.1.247 -I 2-w 1200 , 1500-c 1700,1800-k-BThe following are the settings for the Nagios host5. Server-Side testing/usr/local/nagios/libexec/check_nrpe-h 192.168.1.2
First, use the compile installation
This method is suitable for all Linux distributions
First, download Vnstat from the official website:
wget http://humdi.net/vnstat/vnstat-1.11.tar.gzExtract:
Tar xvzf vnstat-1.11.tar.gzEnter directory:
CD vnstat-1.11Compile Installation:
Make make installIf you do not have the make command, you need to install GCC and make
CentOS under:
Yum-y Install GCC makeDebian/ubuntu under:
sudo apt-get install gcc ma
1, installation NethogsYum- y install Nethogs2, after the installation is complete, you can execute the command
Nethogs
3, real-time view of process traffic, to a diagram display
The figure shows how much of the current nginx generated traffic will be clearly displayed. Unit Kb/sec.This tool (1), can be real-time view of the current process of the s
This article may be helpful if you think that a gigabit Nic on an intranet server cannot meet your switching needs.In fact, I have never thought about writing this article before, because I had an interview with a well-known domestic video website two days ago. I had the following question: "I will give you a server with four Gigabit NICs, how can I achieve the maximum 4G traffic output?" At that time, I did not think much about completing the job. Af
There are two small men in my heart. One called guilt, to csdn so a knowledge-sharing platform of guilt, because I am doing a sorry csdn thing. One called vanity, the desire for csdn visits made me step out of this. This step, stepped into the abyss. In the end, my guilty villain died. Suicide. The vanity man ascended the historical stage. So this blog post is issued.The following script is used to automatically increase the amount of CSDN access to the shell script first of all, this script is
Sometimes we need to look at the network card traffic on the server in real time, here I write a shell script. The script uses a while true "dead loop", every 10s from "/proc/net/dev" to take a value and calculates the average bandwidth within 10s based on the difference within 10s; Press CTRL + C to stop execution. Scripts are compatible with CENTOS6 and 7, the scripts are not too complex, and the annotations in the script are more nuanced, so I don'
I. Introduction of NethogsShare a check on the bandwidth usage of the detection system process under Linux. Open source tools from GitHub.It does not rely on modules in the kernel. When our server network is abnormal, you can run the Nethogs program to detect that the program is taking up a lot of bandwidth. Find time saved.Second, installation method1. You can install the Yum directly in the Epel sourceYum Install Libpcap nethogs-y2. Source Mode inst
First, introduce
Linux under the nload is a very useful tool, the function is very strong, but relatively single, can only view the total flow. Can monitor the traffic of the network card in real time, divide incoming,outgoing two parts, namely flow of inflow and outflow
At the same time statistics current, average, smallest, largest, total flow value official website: http://www.roland-riegel.de/nload/in
Linux Real-time traffic monitoring (iptraf Chinese illustration)
After the installation of Red Hat 4, the default will be installed IPTRAF Network Tools, if you do not fully install, you can find Iptraf RPM package installed in the CD, installation completed in the terminal under the Input Iptraf Open tool, successfully opened, you will see the monitoring software on the information page: Press ENTER to en
is available if necessary.
7, optimize
Because it is a network device, mainly used to view the next network traffic, and from the 4th can be seen, its collection of all the port can be collected traffic, in fact, many times is not used or not we want to see, here will need to edit the Mrtg.cfg file only need to monitor the port ID, You also need to modify the contents of the Indexmaker generated home pag
mentioned below, you can try to enable the module via Modprobe:
/sbin/modprobe tcp_htcp
/sbin/modprobe tcp_hybla
For the analysis of several algorithms, the details can be referred to the following: TCP congestion control algorithm advantages and disadvantages of the application of environmental performance analysis, but this does not involve the design of satellite communications specifically for the Congestion control algorithm: Hybla. Ac
View shell scripts for Linux server network trafficWhen uploading a large number of files, you can use this script to implement monitoring!#!/bin/sh## #统计5s内的平均流量, if[ "$" = "];thenecho-" in megabytes e "\nuseinterface_nameafterthescript,like \ "$0eth0\" ... \ n "exit-1fiecho-e" \n startmonitoringthe$1,press\ "ctrl+c\" tostop "echo--- -------------------------------------------------------#ls /etc/sysconfig/network-scripts/|grep ifcfg|cut-d "-" -f2whi
Nload: A real-time network traffic monitoring software for Linux. :Cnetos/rhel 6 32bit:http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/nload-0.7.4-1.el6.rf.i686.rpm Centos/rhel 6 64bit: http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/nload-0.7.4-1.el6.rf.x86_64.rpmMore versions view: http://pkgs.repoforge.org/nload/getconf Long_bit View the current number of system bitsDownload nload:[Email protecte
Network traffic monitoring for Linux machines can be done using iftopInstallation methodUnder the CentOS system1. Install the necessary packagesyum install libpcap libpcap-devel ncurses ncurses-devel2. Download and install Iftop1.0pre4Version is the latest version to February 9, 2017.cd /tmpwget http://www.ex-parrot.com/pdw/iftop/download/iftop-1.0pre4.tar.gztar -zxvf iftop-1.0pre4.tar.gzcd iftop-1.0pre4./c
In linux, tcpdump is used to monitor network traffic, and exported files are obtained to wireshark in windows to analyze the command lines in linux: tcpdump-I eth1-s 0 host 10.12.129.3-w output.txt-I indicates listening on eth1. The default value is eth0,This is not specified at the beginning, and the traffic of a cert
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.