Details on ntop monitoring deployment under RHEL5.9

Source: Internet
Author: User

Prepare the installation environment

 
 
  1. yum -y install libpcap libpcap-devel libpng libpng-devel gdbm gdbm-devel glib libxml2 libxml2-devel pango pango-devel gd  

Download the latest stable version of ntop

 
 
  1. wget http://sourceforge.net/projects/ntop/files/ntop/Stable/ntop-5.0.1.tar.gz

Compile and install ntop

 
 
  1. tar zxf ntop-5.0.1.tar.gz  

  2. cd ntop-5.0.1  

  3. ./autogen.sh --with-tcpwrap  

  4. make  

  5. make install  

If it is found in./autogen. sh -- with-tcpwrap
 
 
  1. configure: error: Unable to find RRD at /usr/local/rrdtool/: please use --with-rrd-home=DIR

The rrdtool of the source code package needs to be installed for a long time.

Install rrdtool

Download the latest rrdtool source code package

 
 
  1. wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.7.tar.gz 

Compile and install

 
 
  1. tar zxf rrdtool-1.4.7.tar.gz  

  2. cd rrdtool-1.4.7  

  3. ./configure --prefix=/usr/local/rrdtool  

  4. make  

  5. make install  

Then re-configure it../Autogen. sh -- with-tcpwrap

If the following error occurs, yum install-y subversion

650) this. width = 650; "border =" 0 "src =" http://img1.51cto.com/attachment/201304/172730933.png "/>

If the following error is found again
 
 
  1. Removing dups and misplaced entries from LIBS and INCS...  

  2. checking for GeoIP_record_by_ipnum in -lGeoIP... no  

  3. checking for GeoIP_name_by_ipnum_v6 in -lGeoIP... no  

  4. Please install GeoIP (http://www.maxmind.com/)  

You can install related packages.

yum -y install  GeoIP GeoIP-devel 

Then you can install it smoothly!

Supplement: Install ntop in yum

If the source code installation is troublesome, you can use yum to install ntop as shown in the following figure.

 
 
  1. yum -y install rrdtool cgilib ntop 

Create log directory
 
 
  1. mkdir /var/log/ntop 

Create an ntop user

 
 
  1. groupadd ntop 

  2. useradd ntop -g ntop 

Change users and groups

 
 
  1. chown -R ntop.ntop /var/log/ntop/ 

Set User and password

 
 
  1. ntop -A 

The following content appears:

650) this. width = 650; "border =" 0 "src =" http://www.bkjia.com/uploads/allimg/131227/1929526113-1.png "/>

There are two ways to start ntop

Method 1

 
 
  1. ntop -p /var/log/ntop/ -u nobody & 

Start with the nobody user and log as/var/log/ntop in the background

Method 2

 
 
  1. ntop -d -i eth0 

Future daemon-d) run the NTOP service and monitor

Enter ip/domain name + port number 3000 by default

650) this. width = 650; "title =" ntop.png "src =" http://www.bkjia.com/uploads/allimg/131227/1929521U2-2.png "/>

 

This article is from the "Old Xu's Private food" blog and will not be reposted!

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.