How to install it? By yum will be easy method to finish it!
Add a new repository for ntopngAt first, we have to create a repository for installing NTOP package by adding a file name ntop.repo under the /etc/yum.repos.d/ directory
Install ntopng packageTo clean all the cached files from any enabled repository by using the yum clear all command.
AS-IS
To realize which repository has the ntopng package by using the yum info ntopng command
Configure ntopng setting
To ensure the GeoIP database is present (# 2)
After finish the above configuration, we need to start the redis service firstly by using the service redis start command
Add a firewall rule for ntopngTo add a firewall rule on iptables for allowing access to this web interface remotely by using the iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 3000 -j ACCEPT command
Once ntopng is started successfully, we can use http://<host ip address>:3000 to explore the ntopng web interface. By default, the username/password is admin/admin to log in this.
Reference:
(# 1) Another method for adding a REPL repo is to use the rpm –Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm command
(# 2) If the GeoIP database files never exist in the /usr/local/share/ntopng/httpdocs/geoip directory, we can download the GeoLite databases for GeoIP next to do the following steps.
#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
(# 3) If the ntopng configuration data never exist after install it, we need to create the NTOP configuration directory and files as follows.
#mkdir –p /etc/ntopng
#touch /etc/ntopng/ntopng.start
#vi /etc/ntopng/ntopng.start
--local-networks “your subnet here”
--interface 0
#touch /etc/ntopng/ntopng.conf
#vi /etc/ntopng/ntopng.conf
-G=/var/run/ntopng.pid
(# 4) please confirm whether the redis & ntopng service will be started on boot by using the chkconfig --list command.
Hello how are you? I made the configuration ntopng on centos 6.7. My concern is when I do ntopng service start I have this "Starting ntopng: / usr / bin / ntopng: error while loading shared libraries: libzmq.so.4: can not open shared object file: No such file or directory Unable to ntopng start "and also I can not find the file /etc/ntopng/ntpong.conf.sample. geoip for not working "unable to resolve host address" download.maxmind.com "I need your help !!!
回覆刪除