System Environment: CentOS6.3 x64
NTOP: ntop-5.0.1
Rrdtool: rpmforge Source
Libpcap: rpmforge Source
NTOP is a network traffic monitoring tool that comes with a web management interface to monitor Intranet traffic in LINUX sites. It can be installed on the gateway or bridge between the gateway and the access layer switch as a sniffer, which can be understood as an enhanced sniffer.
1. Install a third-party YUM Source
# Http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
# Rpm-ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
2. Install the dependency package
# Yum install libtool automake autoconf m4 make gcc-c ++ gdbm-devel zlib-devel openssl-devel python-devel GeoIP-devel-y
3. Install libpcap
# Yum install libpcap-devel-y
4. Install rrdtool
# Yum install rrdtool-devel-y
4. Install ntop
# Wget http://sourceforge.net/projects/ntop/files/ntop/Stable/ntop-5.0.1.tar.gz/download
# Tar-zxvf ntop-5.0.1.tar.gz
# Cd ntop-5.0.1
#./Autogen. sh
# Make & make install
5. Create ntop users and groups
# Groupadd ntop
# Useradd ntop-g ntop
6. Configure ntop User Permissions
The ntop home directory is/usr/local/share/ntop by default.
# Chown-R ntop: ntop/usr/local/share/ntop
7. Create the rrd directory used by ntop
# Mkdir/usr/local/var/ntop/rrd
# Chown-R ntop: ntop/usr/local/var/ntop/rrd
8. Start ntop
# Ntop-u ntop-d
9. log on to ntop in the browser (username/password: admin/admin)
Http: // 192.168.7.73: 3000
Change Password:
Admin-Configure-Web Users-change admin User Password
10. Set auto-start upon startup
# Vi/etc/rc. local
Add the last line:
------------------
/Usr/local/bin/ntop-u ntop-d
------------------
11. View logs:
# Tail-f/var/log/messages