How to Install ntopng on CentOS 7
ntopng is the newer client to ntop and 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. Its 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
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:
Before any edits the file looks like this:
Edit the file so it looks like this:
Now restart the ntopng service so your modifications to the configuration file are put into place:
systemctl restart ntopng.service
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 allow traffic to 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
Log in using the default credentials username
admin and the default password
How was this article?