N Top is a monitoring network traffic tool
First, installation environment
Cd/root/download
Yum install Libtool libpcap libpcap-devel gdbm gdbm-devel zlib zlib-devel
wget http://mirror01.idc.hinet.net/EPEL/5Server/x86_64/GeoIP-1.4.8-1.el5.x86_64.rpm
wget http://mirror01.idc.hinet.net/EPEL/5Server/x86_64/GeoIP-devel-1.4.8-1.el5.x86_64.rpm
Yum-y--nogpgcheck Localinstall geoip-*.el5.x86_64.rpm
Yum-y--nogpgcheck Localinstall ettercap-*.rpm
Second, installation ntop
useradd-m-s/sbin/nologin-r ntop
wget http://down1.chinaunix.net/distfiles/ntop-4.1.0.tar.gz
Tar zxvf ntop-4.1.0.tar.gz
CD ntop-4.1.0
./autogen.sh
Make
Make install
Chown-r Ntop:ntop/usr/local/share/ntop
Chown-r Ntop:root/usr/local/var/ntop
Third, configuration ntop
1. Set the password for NTOP Admin user
ntop-a
Admin 123456
2. Start ntop
ntop-i eth0-d-l-u ntop
eth0 is your monitor. Network card used to capture traffic
3. Auto-start
Echo ' ntop-i eth0-d-l-u ntop &>/dev/null ' >>/etc/rc.d/rc.local
4. Firewall Add Trust Port 3000
Iptables-i input-p TCP--dport 3000-j ACCEPT
Service Iptables Save
5. Visit the page
http://localhost:3000
Iv. Integration of cacti ntop
Cd/root/download
wget http://docs.cacti.net/_media/plugin:ntop-v0.2-1.tgz
MV Plugin:ntop-v0.2-1.tgz ntop-v0.2-1.tgz
Tar zxvf ntop-v0.2-1.tgz-c/var/www/html/cacti/plugins/
vi/var/www/html/cacti/include/config.php
$plugins [] = ' ntop ';
In plugin Management "Install and enable plugins
In user management, check the view Ntop
Set the URL in Settings, misc:http://localhost:3000
LocalHost can also be switched to the IP address of the monitoring machine
This article is from the "Moon Ching Xing Fei" blog, please be sure to keep this source http://ywzhou.blog.51cto.com/2785388/1532141