In this article, we will have explained the necessary steps to install Netdata on Rocky Linux 8. Before continuing with this tutorial, make sure you are logged in as a user with
sudo privileges. All the commands in this tutorial should be run as a non-root user.
Netdata is a tool to visualize and monitor metrics in real-time, optimized to accumulate all types of data like CPU usage, RAM usage, Load, SWAP usage, Bandwidth usage, Disk usage, etc. Netdata is architected for speed and automated for ease.
- Operating System with Rocky Linux 8
- Server IPv4 Address with Superuser Privileges (Root Access)
- Gnome Terminal for Linux Desktop
- PuTTy SSH client for Windows or macOS
- Powershell for Windows 10/11
- Familiar with DNF Commands
Install Netdata on Rocky Linux 8
Step 1. First, before you start installing any package on your Rocky Linux server, we always recommend making sure that all system packages are updated.
sudo dnf install epel-release sudo dnf update sudo dnf upgrade
Step 2. Install Netdata on Rocky Linux.
Installing Netdata on your Rocky Linux system is straightforward, Now run the following command below to download the latest version of Netdata from its official website:
git clone --recurse-submodules https://github.com/netdata/netdata.git --depth=100
Then, change the directory to Netdata and install all required dependencies using the following command:
cd netdata ./packaging/installer/install-required-packages.sh --non-interactive --dont-wait netdata sudo dnf --enablerepo=powertools install libuv-devel
Finally, run the following script to build and install Netdata:
--- real-time performance monitoring, done right! --- You are about to build and install netdata to your system. The build process will use /tmp for any temporary files. You can override this by setting $TMPDIR to a writable directory where you can execute files. It will be installed at these locations: - the daemon at /usr/sbin/netdata - config files in /etc/netdata - web files in /usr/share/netdata - plugins in /usr/libexec/netdata - cache files in /var/cache/netdata - db files in /var/lib/netdata - log files in /var/log/netdata - pid file at /var/run/netdata.pid - logrotate file at /etc/logrotate.d/netdata -----------------------------------------------------
After the installation, start and enable the Netdata and verify the status using the commands:
sudo systemctl start netdata sudo systemctl enable netdata sudo systemctl status netdata
Step 3. Configure Firewall.
Netdata listens on port 19999 by default, enabling ports in the firewall to use Netdata from the browser:
sudo firewall-cmd --permanent --add-port=19999/tcp sudo firewall-cmd --permanent --add-port=80/tcp sudo firewall-cmd --reload
Step 4. Accessing Netdata on Rocky Linux 8.
Finally, open a web browser and browse the URL shown:
This displays a dashboard displaying an overview of various system metrics such as CPU and Memory utilization.
That’s all you need to do to install Netdata on Rocky Linux 8. I hope you find this quick tip helpful. For further reading on Netdata’s real-time server monitoring tool, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.