Install Netdata Monitoring Tool on Ubuntu 20.04 - Step by Step Process ?

To get real-time statistics on various system metrics is a top priority for system administrators, developers, and operation teams in general. 

It helps in monitoring systems in Realtime and quickly picking up faults or errors and resolving them to ensure things get back on track.

Netdata is a free and open-source distributed, real-time monitoring application that runs across various computing devices; physical servers, cloud servers, containers, and even IoT devices. 

It collects a great deal of data and visualizes it on sleek and interactive dashboards.

Here at LinuxAPT, as part of our Server Management Services, we regularly help our Customers to perform related Netdata Monitoring queries.

In this context, we shall look into how to install Netdata on Ubuntu 20.04 LTS.


How to Install Netdata on Ubuntu Linux ?

Here, we are going to take a few steps to make NetData installation process clearer.

Now follow the steps below to install and configure NetData.


1. Install Netdata using kickstart.sh script

This is the most preferred way of installing Netdata because it allows you to pass other arguments on the same command to customize the installation process. 

Most importantly, this method seamlessly works across all distros.

At the start you might want to view more information about Netdata. 

Use the APT command as follows:

$ apt show netdata

The output provides Netdata information such as the latest version, origin, installation size, and a description of the package.


To install Netdata, simply run the kickstart script as follows:

$ bash <(curl -Ss https://my-netdata.io/kickstart.sh)

As you will notice, the script performs a bunch of operations. 

First, it autodetects the Linux Operating system and distribution you are running and later install the requisite packages.

You will notice that the OS information has been retrieved and displayed to stdout by the script.

The script then proceeds to check if you have an existing instance of Netdata, and if there is one, the script updates Netdata instead of installing Netdata afresh.

Thereafter, the script pulls Netdata from the Git repository and stores it in /usr/src/netdata.git. Path. 

All the required files and dependencies are thereafter installed and the package index updated.

Along the way, the location of Netdata files including configuration files, web files, db files and log files will be displayed.

Towards the end, basic instructions on how to access Netdata dashboard along with starting and stopping Netdata will be displayed.

The updater script netdata-updater.sh is then added to /etc/cron-daily f to ensure that Netdata is continually updated.

As the installation wraps up , the script will inform you that Netdata was successfully installed and is now running.


2. Confirm Netdata is running

Netdata is finally installed. However, it's prudent to verify that indeed Netdata service is active and running.

By default, Netdata listens on port 19999

To confirm this, run the netstat command below:

$ sudo netstat -pnltu | grep 19999

Also, you can confirm that Netstat systemd service is running by invoking:

$ sudo systemctl status netdata

The output will show that Netdata is running.


3. Configure firewall

At this point, you can access Netdata from the browser from your host system. 

However, if UFW firewall is enabled, this will not be possible. With that in mind, port 19999 needs to be allowed.

So run the following commands:

$ sudo ufw allow 19999/tcp
$ sudo ufw reload

Then confirm that port 19999 is allowed on the firewall:

$ sudo ufw status


4. Access Netdata dashboard

All the configurations are done and dusted. As we wrap up, we are going to access Netdata by browsing the following URL. 

Replace the host-ip with your host's real IP address.

http://host-ip:19999

Now you will see Netdata dashboard will come into view with elegant and beautiful visualizations displaying a System overview of the main system metrics such as CPU utilization, network bandwidth stats, disk read/write and RAM utilization.

On the right sidebar are additional system metric options that you can click on to view dashboards that visualize real-time statistics.

For instance, to have a glance at the network bandwidth, select the 'Network Interfaces' icon.

The 'Network Interfaces' dashboard will be displayed with bandwidth statistics on various network adapters.


[Need urgent assistance in fixing Server Monitoring issues on Ubuntu Linux System ? We can help you. ]

This article covers how to install and configure Netdata on Ubuntu 20.04 LTS and different metrics visualized in it. Netdata provides an excellent solution for monitoring your single node in real-time. You can configure alarms and notifications which can be triggered when a certain event or threshold is exceeded.


To install Netdata on Ubuntu:

1. You can install netdata on Ubuntu by running the following commands.

$ sudo apt update 
$ sudo apt install netdata 

Press 'y' if confirmation prompted by the installer.

2. Edit netdata configuration file in your favorite text editor.

$ sudo vim /etc/netdata/netdata.conf 

3. After modifying its configuration file, you can Save your file and restart netdata service:

$ sudo systemctl restart netdata 

Related Posts