Install NTOP NG 1.0.1 on CentOS 6.4
Let’s install the latest NTOP, 1.0.1, on CentOS 6.4 by using YUM to make it easy.
Note: NTOP must be installed on a 64-bit operating system.
1. Create a repository for NTOP.
vi /etc/yum.repos.d/ntop.repo
[ntop]
name=ntop packages
baseurl=http://rpm.ntop.org/$releasever/$basearch/
enabled=1
gpgkey=http://www.nmon.net/centos/RPM-GPG-KEY-deri
2. Add the EPEL repository, if it doesn’t already exist
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
3. Install the packages.
yum clean all
yum update
yum install pfring n2disk nProbe ntopng
4.Set NTOP to start on boot.
chkconfig ntopng on
chkconfig redis on redis
5. Download the GeoLite databases for GeoIP.
cd /usr/local/share/ntopng/httpdocs/geoip
wget http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
gunzip GeoIPASNum.dat.gz
wget http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz
gunzip GeoIPASNumv6.dat.gz
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
gunzip GeoLiteCity.dat.gz
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz
gunzip GeoLiteCityv6.dat.gz
6.Create the NTOP configuration directory and files.
mkdir /etc/ntopng
touch /etc/ntopng/ntopng.start
touch /etc/ntopng/ntopng.conf
vi /etc/ntopng/ntopng.start
--local-networks 「your subnet here」
--interface 1
vi /etc/ntopng/ntopng.conf
-G=/var/run/ntopng.pid
7.Start the services.
service redis start
service ntopng start (Note: At the time of writing 「service ntopng stop」 did not work.)
8.Browse to the NTOP server address.
http://yourserveraddress:3000 username: admin password: admin