Table of Contents
- Step 1: Update the system
- Step 2: Install dependencies
- Step 3: Install Netdata
- Step 4: Modify firewall rules
- Step 5: View the monitoring interface
- Uninstall and Update Netdata
If you are using a different system, please check our other tutorials.
Netdata is a rising star in the field of real-time system metrics monitoring. Compared with other tools of the same kind, Netdata:
- Monitors and renders various system metrics in real time, such as CPU, memory, disk I/O, network traffic, system processes, Apache/Nginx status, MySQL status, Postfix message queue, and others.
- Runs on most Linux distributions.
- Is highly optimized to use minimal CPU, memory, and disk I/O.
- Provide stunning real-time metrics graphics in an intuitive web interface.
In this article, I will demonstrate how to install Netdata on An ITWeb.Services Debian 9 server instance.
Before reading further, you should have deployed An ITWeb.Services Debian 9 server instance and logged in as a non-root user with sudo privileges.
Step 1: Update the system
For security purposes, update the system to the latest stable status:
sudo apt-get update && sudo apt-get upgrade
Step 2: Install dependencies
In order to install Netdata, you need to install the dependencies below:
sudo apt-get install zlib1g-dev uuid-dev libmnl-dev gcc make git autoconf autoconf-archive autogen automake pkg-config curl
Step 3: Install Netdata
Install Netdata with the official installation script:
cd ~ git clone https://github.com/firehol/netdata.git --depth=1 cd netdata ./netdata-installer.sh
During the installation process, Press ENTER to start the installation.
The Netdata daemon will start.
You can start, stop and get the status of the Netdata service by running the following commands:
sudo systemctl start netdata sudo systemctl stop netdata sudo systemctl status netdata
Step 4: Modify firewall rules
Before you can access Netdata’s web interface, you need to modify firewall rules to allow traffic on port
19999, the default communication port of Netdata:
sudo firewall-cmd --permanent --zone=public --add-port=19999/tcp sudo firewall-cmd --reload
Reload the firewall:
service firewalld restart
Step 5: View the monitoring interface
Confirm the installation by opening your web browser and visiting the monitoring interface of Netdata:
http://<your-IT Web Services-server-IP>:19999
To further configure Netdata, edit its configuration file:
sudo vi /etc/netdata/netdata.conf
You can also view the current configuration:
http://<your-IT Web Services-server-IP>:19999/netdata.conf
Uninstall and Update Netdata
If you want to remove Netdata from your system, then you can run the following command:
cd netdata sudo /netdata-uninstaller.sh --force
If you want to update the Netdata to the latest version, use the following command:
cd netdata git pull sudo ./netdata-installer.sh
Do you need help setting up this on your own service?
Please contact us and we’ll provide you the best possible quote!