How To Install Ntopng on CentOS 7

ntop_logo

For those of you who didn’t know, Ntopng is a relatively useful tool if you are looking to monitor different network protocols on your servers. It provides a bunch of tools for monitoring various protocols, traffic variants, and yes, bandwidth across multiple time frames. ntopng is based on libpcap and it has been written in a portable way in order to virtually run on every Unix platform, MacOSX and on Win32 as well.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Ntopng on CentOS 7.

Install Ntopng on CentOS 7

Step 1. First, we need to add EPEL repository in our system.

yum install epel-release wget

Step 2. Create the ntop repository for the stable builds.

# cat /etc/yum.repos.d/ntop.repo
[ntop]
name=ntop packages
baseurl=http://www.nmon.net/centos-stable/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.nmon.net/centos-stable/RPM-GPG-KEY-deri
[ntop-noarch]
name=ntop packages
baseurl=http://www.nmon.net/centos-stable/$releasever/noarch/
enabled=1
gpgcheck=1
gpgkey=http://www.nmon.net/centos-stable/RPM-GPG-KEY-deri

Step 3. Install Ntopng packages on CentOS 7.

yum update
yum install ntopng ntopng-data
yum install redis php-pecl-redis

Step 4. Configure Ntopng.

Once installed, ntopng needs a configuration file. For testing purposes we can use the sample config file, but don’t forget to create a proper configuration file (man ntopng) later:

cp /etc/ntopng/ntopng.conf.sample /etc/ntopng/ntopng.conf

Step 5. Start ntopng and redis server also enable the service to start at boot time:

systemctl start redis-server.service
systemctl enable redis-server.service
systemctl start ntopng.service
systemctl enable ntopng.service

Step 6. Configure ipables or firewall.

firewall-cmd --direct --add-rule ipv4 filter IN_public_allow 0 -m tcp -p tcp --dport 3000 -s 192.168.1.146 -j ACCEPT

Step 7. Access Ntopng.

If all is well, now you can test your ntopng application by typing http://yourserver.name:3000. You will see ntopng login page. For the first time, you can use user ‘admin’ and password ‘admin’.

Install Ntopng on CentOS 7

Congratulations! You have successfully installed Ntopng. Thanks for using this tutorial for installing Ntopng server monitoring on CentOS 7 systems. For additional help or useful information, we recommend you to check the official Ntopng web site.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

Save