Use ntop to efficiently troubleshoot Linux network faults

Source: Internet
Author: User
Article title: use ntop to efficiently troubleshoot Linux network faults. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

As Linux is widely used, a large number of network servers use the Linux operating system. To comprehensively measure the network running status, you must be able to perform more detailed and accurate measurements on the network status. The total data traffic of the network server and the packet transfer rate (or traffic) of TCP and UDP are important for network administrators, because when the traffic is too high, find the network bottleneck. Therefore, in terms of network management, it is necessary to understand the status of various network services for each host in the network, and limit or increase bandwidth based on traffic. We will introduce the next complete GUI network detection tool ntop in Linux.

Preparations

Download software:

Ntop requires zlib, gd, libpcap and libpng functions (zlib is used to compress charts and gd is used to draw charts). before installation, check whether the server contains the following software: zlib (zlib-1.1.3-xx and above) gd (gd-1.3.xx and above), libpng. RPM can be used to confirm:

rpm -qa | grep libpcap
rpm -qa | grep zlib
rpm -qa | grep gd
rpm -qa | grep libpng

Notp can be found in red hat 7.1, but we do not need it because it has a large security vulnerability, one of which allows remote reading of arbitrary files on the host. See linux/825ntop.htm> http://it.rising.com.cn/safety/subject/safety-hole/linux/825ntop.htm for details. It is best to download its latest version of Code: ntop-02-07-10.tar.gz.ntop, home page at http://www.ntop.org/ntop.html. The following uses Hongqi 3.0 (kernel 2.4.7-10) as an example to describe how to install and use ntop.

Install software:

Gunzip ntop-02-07-10.tar.gz
Tar zxvf ntop-02-07-10.tar
Music ntop-02-07-10 ntop
Cd ntop/gdchart0.94c
./Configure
Cd gd-1.8.3/libpng-1.2.4
Make
Cd.../zlib-1.1.4
./Configure
Make
Cd ..
Make
Cd ../ntop
./Configure
Make
Make install

After the installation is complete, create a data storage directory for ntop:

mkdir -p /home/ntop_dbase
chown 99,99 /home/ntop_dbase

Run ntop
/Usr/local/bin/ntop-u nobody-P/home/ntop_dbase &

Note: the first time you run the ntop system, you will be asked to enter the password. you can set one for yourself. you will not need to use ntop later. Start the X Window and enter http: // 192.168.0.2: 3000/in the browser to open the ntop main menu.

Ntop can also be used in the command line:

intop -i eth0

[1] [2] Next page

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.