CentOS 6.6 Installation NTOP network traffic Monitoring tool

Source: Internet
Author: User
Tags geoip rrdtool install perl

Tutorial Goal: CentOS 6.6 installation NTOP network traffic Monitoring tool

Date: August 20, 2015

Contact e-mail: [Email protected]

Q q Group: 1851 15701

51CTO Blog Home: http://990487026.blog.51cto.com


====================================
Preparation phase:

1, installation Environment:
CentOS 6.6 X64 Dektopa Desktop Installation "Chinese, English, with full font, all can", install development tools

2, the required hardware environment:
1,ntop server requires two NICs
2, if the company has more than one network segment, then please map all the ports of the switch traffic to the eth0 of this NIC side
3,ETH1 network card used to access ntop Web pages

Device=eth0
hwaddr=90:2b:34:dd:**:* *
Type=ethernet
uuid=9728a861-a7e5-44a2-8e5a-************
Onboot=yes
Nm_controlled=yes
Bootproto=static
ipaddr=192.168.200.6
netmask=255.255.255.0
#GATEWAY =192.168.200.2
dns1=192.168.200.253



Device=eth1
hwaddr=00:e0:4c:b8:**:* *
Type=ethernet
Onboot=yes
Nm_controlled=yes
Bootproto=static
ipaddr=192.168.12.217
netmask=255.255.255.0
gateway=192.168.12.254
dns1=192.168.200.253


3, Required software: Because the network file sharing exists timeliness, even if uploaded, may be invalid, you can contact my mailbox, I sent you
[Email protected] Install ntop on centos6.6]# LS-LH
Total dosage 40M
-rw-r--r--. 1 root root 86K July 10:19 Etter.finger.os
-rwxr-xr-x. 1 root root 1.1M July 23:35 GeoIP.tar.gz
-rwxr-xr-x. 1 root root 38M July 22:16 ntop-4.0.1.tar.gz
-rwxr-xr-x. 1 root root 1.3M July 22:39 rrdtool-1.4.7.tar.gz

All the required documents can also be searched directly on the following website
Http://www.wangpansou.cn/recommended
https://github.com/
Http://sourceforge.net
http://search.cpan.org/
http://www.filewatcher.com/


4, prepare a temporary Web server, you can use the virtual machine casual yum intall httpd to build one, you can use it later.



First, install the drawing tool
===============================================
1
Install rrdtool dependent compiler tool, otherwise error perl-piped/makefile
Yum Install Perl-extutils-makemaker

2
Need to install RRDtool-dependent packages
Yum install cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel

3
Need to install RRDtool and need Libpcap
Yum-y Install Libpcap-devel Libpcap

You need to set Pkg_config_path, enter:
# Export pkg_config_path=/usr/lib/pkgconfig/

4
Need to install RRDtool
Rrdtool-1.4.7.tar.gz
./configure--prefix=/usr/local/rrdtool

Make
Make install

#编译不指定的话, by default in the/OPT directory
ln-sv/opt/rrdtool-1.4.7//usr/local/rrdtool


Paint test
# cd/usr/local/rrdtool/share/rrdtool/examples/
#./stripes.pl
# ls-l
# CP Stripes.png/var/www/html/
Http://your-domain.com/stripes.png take a look at

============================================
Second, you need to install geo-IP tar zxf GeoIP.tar.gz
CD in $./configure
Make
Make install
===============================================
Third, build a temporary web service on the virtual machine
Modify the vim/etc/hosts of this machine
The IP address of the Web server ettercap.cvs.sourceforge.net

A server I temporarily deploy on a virtual machine
1. Enter/var/www/html and set up the corresponding directory structure
2. #cd/var/www/html
3. #mkdir Ettercap
4. #cd Ettercap
5. #mkdir Ettercap_ng
6. #cd Ettercap_ng
7. #mkdir Share
8. #将etter. Finger.os upload to the/var/www/html/ettercap/ettercap_ng/share directory
9. Edit the Hosts file for the NTOP server
#vi/etc/hosts
11. Add the following (IP according to the actual fill)
192.168.10.1 ettercap.cvs.sourceforge.net
13. Launch the improvised Apache
#service httpd Start


==================================================
Four, install ntop
# TAR-ZXVF Ntop-4.0.1.tar.gz
./autogen.sh--with-rrd-home=/usr/local/rrdtool/
Make
Make install

===============================================
Five. Create user and configuration management
Useradd ntop
passwd ntop
cd/usr/local/var/
Chown Ntop:ntop ntop/


Copy the configuration file and modify it.

CD ntop-4.0.1
CP packages/redhat/ntop.conf.sample/usr/local/etc/ntop/ntop.conf
Vim/usr/local/etc/ntop/ntop.conf
Attention
Db-file-path Data Save Path
interface eth0 used to monitor the network card


For the administrator to set the password for the Web page admin dedicated options management, please keep in mind!

#./ntop-a--set-admin-password=ntopadmin

===================================================
Six, start ntop service
If you do not automatically run in the background, you can take the command with & after starting

Mode 1,
/usr/local/bin/ntop-d-l-u ntop-p/usr/local/var/ntop--skip-version-check--use-syslog=daemon

Start ntop Service Mode 2
/usr/local/bin/ntop-d-p/usr/local/var/ntop

Start ntop service Mode 2 3002 Port
/usr/local/bin/ntop-w 3002-d-l-u ntop-p/usr/local/var/ntop


Access Test http://IP:3000



CentOS 6.6 Installation NTOP network traffic Monitoring tool

Related Article

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.