Netdata is a powerful open-source server monitoring tool that provides real-time data on various server metrics such as CPU usage, RAM usage, load, swap usage, bandwidth usage, and disk usage. Installing Netdata on your Rocky Linux 8 server allows you to gain valuable insights into the performance and health of your system. In this article, we will guide you through the step-by-step process of installing Netdata on Rocky Linux 8.
1. Installing EPEL Repo
Before we begin the installation process, we need to install the Extra Packages for Enterprise Linux (EPEL) repository, which contains additional packages that are not available in the default Rocky Linux repositories. To install the EPEL repository, run the following command in your terminal:
dnf install epel-release -y
2. Install Required Packages for Netdata
To ensure that Netdata functions properly, we need to install several required packages. These packages include git, libuuid-devel, autoconf, automake, pkgconfig, zlib-devel, curl, findutils, libmnl, gcc, and make. Execute the following command to install these packages:
dnf install git libuuid-devel autoconf automake pkgconfig zlib-devel curl findutils libmnl gcc make -y
3. Clone Netdata from GitHub
Next, we will clone the Netdata repository from GitHub. This will allow us to download the necessary files and dependencies required for the installation process. Run the following command to clone the repository:
git clone https://github.com/netdata/netdata.git --depth=100
4. Build and Install Netdata
Once we have cloned the Netdata repository, we need to switch to the Netdata directory and install the required packages. Use the following commands to navigate to the Netdata directory and install the necessary packages:
cd netdata ./packaging/installer/install-required-packages.sh --non-interactive --dont-wait netdata dnf --enablerepo=powertools install libuv-devel ./netdata-installer.sh
After executing these commands, the installation process will begin. Netdata will be built and installed on your Rocky Linux 8 server. Once the installation is complete, you can proceed to the next step.
5. Configure Firewall
To access the Netdata dashboard from your browser, you need to configure your firewall to allow incoming connections on port 19999. Run the following commands to add the necessary firewall rules:
firewall-cmd --permanent --add-port=19999/tcp firewall-cmd --reload
6. Accessing the Netdata Dashboard
Now that Netdata is installed and the firewall is configured, you can access the Netdata dashboard from your web browser. Simply enter the following URL, replacing <Enter Your IP Here>
with the IP address of your Rocky Linux 8 server:
[http://:19999/](http://:19999/)
Upon accessing the Netdata dashboard, you will be presented with real-time metrics and graphs showcasing the performance of your server.
7. Securing Netdata with SSL
To enhance the security of your Netdata installation, you can secure it with SSL encryption. This ensures that all communication between your browser and the Netdata dashboard is encrypted and secure. To enable SSL for Netdata, you can follow the official Netdata documentation on setting up SSL certificates.
8. Automatically Start Netdata on Boot
By default, Netdata is configured to start automatically on system boot. However, if you want to verify the status of Netdata or manually start or stop it, you can use the following commands:
systemctl start netdata systemctl enable netdata systemctl status netdata
9. Updating Netdata
To keep your Netdata installation up to date with the latest features and bug fixes, you should regularly update it. Netdata provides an update script that simplifies the update process. Run the following command to update Netdata:
cd netdata ./netdata-updater.sh
10. Uninstalling Netdata
If, for any reason, you decide to uninstall Netdata from your Rocky Linux 8 server, you can use the following commands to remove it completely:
cd netdata ./netdata-uninstaller.sh
11. Conclusion
In this tutorial, we have covered the step-by-step process of installing Netdata on Rocky Linux 8. By following these instructions, you can easily monitor the performance of your server in real-time and make informed decisions to optimize its efficiency. Netdata provides valuable insights and metrics that help you identify and resolve any potential issues promptly. Start using Netdata today to ensure the smooth operation of your server.
For reliable and scalable cloud hosting solutions, consider Shape.host’s Linux SSD VPS services. Shape.host offers secure and high-performance VPS hosting with a range of plans to suit your specific needs.