How to Install ntopng on CentOS 7
ntopng is the newer client to ntop which allows you to monitor your server’s resource usage using a graphical interface. unlike ntop which only provides a command-line interface. We’re going to install the community version to monitor the resources on a new VPS server we created.
Firstly update the system each time you log in to your server you should get used to running the update commands to ensure you have the latest security patches and software fixes. It’s advisable to reboot the system after an update.
yum update -y; reboot
Install ntopng on CentOS 7
After reboot login to the server again and then we need to add the ntop repo to your system.
yum install nano -y ; nano /etc/yum.repos.d/ntop.repo
Copy the below code into the file you just opened with nano in the above command then save and close the file
[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
Now install ntop and all the required dependencies
yum update; yum --enablerepo=epel install redis ntopng hiredis-devel
Once ntopng and all of it’s its dependencies have been installed, you need to start the service and the ntopng service. This needs to be done one by one enabling each as you activate it:
systemctl start redis.service
systemctl enable redis.service
systemctl start ntopng.service
systemctl enable ntopng.service
Now you can check the status of the ntopng service to ensure its running in the server:
systemctl status ntopng.service
As you will see, the ntopng service is running but it displays a license error. You can fix the license error by modifying the ntopng configuration file:
nano /etc/ntopng/ntopng.conf
Before any edits the file looks like this:
-G=/var/tmp/ntopng.pid
Edit the file so it looks like this:
-G=/var/tmp/ntopng.pid\
--community

Now restart the ntopng service so your modifications to the configuration file are put into place:
systemctl restart ntopng.service
So you can now access the admin interface for ntopng by navigating to your first2host servers IP followed by :3000. If at first, you can not connect to the interface check your firewall status. You need to open port 3000. You can disable the firewall and try to connect again to see if you can then access the interface. If you can you know you need to allow port 3000

http://[your-first2host-ip]:3000
Log in using the default credentials username admin
and the default password admin
How was this article?
More from Dedicated Servers
Enable Mod_RemoteIP – See Visitors Real IP address when using Cloudflare & Apache
If you are using Cloudflare on your Apache server you will always see Cloudflare IPs in your logs and not …
Fix 413 Request Entity Too Large Errors When Using NGINX
Just like Apache, NGINX imposes default limits on the size of files that can be uploaded. A 413 Request Entity …
Cloud-init Modules That Automate and Customize Deployments
Cloud-init is a popular way to automate deployments of instances in a cloud or none cloud environment. To save having …