How to Monitor Performance Of CentOS 8/7 Server Using Netdata

There are many monitoring tools available that make it possible to monitor systems and send notifications in the event of problems. However, the associated installation and set-up steps are often laborious.

Netdata is an open source real-time monitoring and troubleshooting tool that can be installed in just a few steps. The git repository comes with an automated script that supports most installation and configuration processes, eliminating the annoying configuration associated with other monitoring tools.

Netdata has become enormously popular since its first publication in October 2013. It collects real-time measurements, such as CPU and RAM usage, bandwidth and disk usage statistics, and displays them in easy-to-understand graphs/charts.

He has taken a big step forward that has earned him a place in the Forbes 2020 Rising 100 Star Rankings. This list contains the top 100 private companies in the cloud sector.

In this article we see how you can install Netdata on a CentOS 8/7 to monitor the performance and health of servers and applications in real time.

Platformswith support

Netdata supports the following distributions :

  • CentOS 8 and CentOS 7
  • Scale 8 and scale 7
  • Fedora-Linux

How to install Netdata in CentOS Linux

1. Before you plunge into the Netdata installation, some mandatory packages are required. But first you need to update your system and install the EPEL repository as shown in the figure.

Upgrade shipyards
Shipyards of Epilayer Release Facility

2. Then install the required software as shown in the figure.

$ ship-yum install gcc do git curl zlib-devel git automatics libmnl autoconf pkgconfig findutils

3. When you have finished installing the required packages, clone the Netdata git repository as shown in the figure.

git clone $ – depth = 100

Git-clone network data in CentOS

4. Then go to the Netdata directory and run the script. The script identifies your Linux distribution and installs the additional packages required when installing Netdata.

cd netdata/ $
./packaging/ –don-wait-uninteractive netdata

5. Finally, to install Netdata, run the automated Netdata script as shown below.


After executing the script, you will be informed where important Netdata files are stored. These include configuration files, web files, plug-ins, database files and log files, to name but a few.

Net installation of data on CentOS

6. Press ENTER to start the installation process. During the installation process you will get some tips on how to access and manage Netdata in your browser, such as starting and stopping Netdata.

Data access information to the network

The script has been running for some time and has undergone all necessary adjustments and improvements during the installation process. In my case it took about 3 to 5 minutes, and after all this the screen should appear to confirm that the installation was successful.

Summary of network data installation

7. After installation we need the Netdata daemon. To start, you must enable the Netdata daemon at startup and check its status by executing the following commands:

sudo systemctl start grid data
$ sudo systemctl start grid data
$ sudo systemctl status grid data

Checking the status of the network data

8. By default Netdata listens on port 19999, and you can confirm this with the netstat command, as shown in the figure :

sudo netstat -pnltu | grep netdata

Check the network data eavesdropping port

9. We need to open this port on the firewall to access Netdata through a browser. Follow these instructions:

sudo firewall-cmd –add-port=1999999/tcp – constant
$ sudo firewall-cmd – reloads

10. To access Netdata, start a browser and search for the URL as shown in the figure :


You get a dashboard that shows the overall system performance in intuitive and interesting graphs.

Netdata CentOS Server Monitoring

You can consult the different graphs by clicking on the measurements on the right. For example, to get an idea of current system services, click on the System Services option as shown in the figure.

Control services on CentOS

Network data protection with basic authentication on CentOS

As you may have noticed with concern, Netdata does not offer any form of authentication. This means that almost everyone has access to the control panel, as long as they have a Netdata IP address.

Fortunately, we can set up basic authentication using htpasswd and the Nginx web server as a reverse proxy. So we’ll install the Nginx web server.

install sudo dnf nginx

After installing Nginx, we create a configuration file in /etc/nginx/conf.d. However, feel free to use the website directory if you are using Nginx for purposes other than Netdata.

$ sudo vim /etc/nginx/conf.d/default.conf

Add the following configuration completely and make sure you customize the server_ip and guidelines with your own server-IP address and server name

Backend of upstream network data { Server;
keepalive 64;

server {
hear server_ip:80 ;
server_name ;

Basic authentication required;
access to network data from user’s master file;

location / {proxy_set_header X-forwarding host $host;proxy_set_header X-forwarding server $host;proxy_set_header X-forwarding server $host;proxy_set_header X-forwarding server $proxy_add_x_forwarded_for;proxy_pass http://netdata-backend;proxy_http_version 1.1;proxy_pass_request_headers on;proxy_set_header connection keep-alive;proxy_store off;}}.

To authenticate the user, we create a username and password for a user named tecmint with the htpasswd tool and store the data in the net data access file.

$ sudo htpasswd -c /etc/nginx/network access tecmint

Enter your password and confirm it.

Enable basic authentication for network data

Then restart the Nginx web server to make the changes take effect.

$ sudo systemctl restart nginx

To check if the configuration is set up correctly, go to the IP address display of your server.


Netdata User login

You will then have access to the control panel of Netdata.

Access to network data with user authentication

And that’s it, folks. We have guided you through the installation of the Netdata monitoring tool on CentOS 8 and have configured the basic authentication to secure the monitoring tool. Send us a shout and let us know how it went.

If you like what we do here at TecMint, you should think:.

TecMint is the fastest growing and most reliable community site for all articles, guides and books about Linux on the web. Millions of people visit TecMint! to find or consult thousands of published articles that are accessible to everyone for FREE.

If you like what you read, consider buying us a coffee (or 2) as a thank you.

We are grateful for your continued support.

Related Tags:

yum install netdata,netdata monitor nginx,firewall cmd netdata,netdata nginx reverse proxy,netdata linux,netdata grafana,netdata wiki,netdata command line,netdata community,netdata customers,netdata install,server monitor dashboard,linux server monitoring dashboard,how to install netdata on raspberry pi,what is netdata monitoring,server monitoring tools github,linux monitor github