Set up Netdata for the real-time system monitor on Linux

Netdata is nothing more than a nice daemon used for real-time monitoring of the performance of Linux systems. Performance monitoring in terms of hardware monitoring (such as disk usage, memory usage, RAID usage, LVM usage, SWAP memory usage, kernel performance, etc.), network monitoring (e.g. bandwidth usage, network connection and connection status, PING status) and system process such as number of started and stopped services and daemons and their use, SNMP devices and so on. We have so many tools to check all of these things (e.g. fdisk, ps, top, free, ping, netstat, etc.), but netdata offers us all the necessary and mandatory functions in one place.

Set up Netdata for the real-time system monitor on Linux

You can install this tool on almost all Linux distributions, but here’s how to install netdata on CentOS / Redhat Linux system. The configuration steps of netdata are so simple and do not take much time.

So let’s look at the following steps to install and configure netdata’s real-time performance monitor tool on Linux.

Follow these steps to install Netdata – Real-Time Performance Monitor Tool on Linux:

Set up Netdata for the real-time system monitor on Linux

Netdata for real-time performance monitoring

Step: 1 Install the required packages

First we need to install the necessary packages and dependencies on Netdata.

Required packages are:

autoconf, git, curl, automake, GCC, libmnl-devel, libuuid-devel, lm_sensors, make, MySQL-Python, nc, pkgconfig

For information on installing the required packages, see the sample output.

# Install Required Packages

[[email protected] ~]# yum -y install autoconf git curl automake gcc libmnl-devel libuuid-devel lm_sensors make MySQL-python nc pkgconfig zlib-devel python python-psycopg2 PyYAML psmisc
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * updates:
Package curl-7.19.7-52.el6.x86_64 already installed and latest version
Package gcc-4.4.7-17.el6.x86_64 already installed and latest version
Package 1:make-3.81-23.el6.x86_64 already installed and latest version
Package 1:pkgconfig-0.23-9.1.el6.x86_64 already installed and latest version
Package psmisc-22.6-19.el6_5.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package MySQL-python.x86_64 0:1.2.3-0.3.c1.1.el6 will be installed
---> Package PyYAML.x86_64 0:3.10-3.1.el6 will be installed
--> Processing Dependency: for package: PyYAML-3.10-3.1.el6.x86_64
---> Package autoconf.noarch 0:2.63-5.1.el6 will be installed
  Verifying  : python-libs-2.6.6-64.el6.x86_64                                                                                                                    24/26 
  Verifying  : python-2.6.6-64.el6.x86_64                                                                                                                         25/26 
  Verifying  : libblkid-2.17.2-12.24.el6.x86_64                                                                                                                   26/26 

  MySQL-python.x86_64 0:1.2.3-0.3.c1.1.el6   PyYAML.x86_64 0:3.10-3.1.el6            autoconf.noarch 0:2.63-5.1.el6                automake.noarch 0:1.11.1-4.el6    
  git.x86_64 0:1.7.1-4.el6_7.1               libmnl-devel.x86_64 0:1.0.2-3.el6       libuuid-devel.x86_64 0:2.17.2-12.24.el6_8.1   lm_sensors.x86_64 0:3.1.1-17.el6  
  nc.x86_64 0:1.84-24.el6                    python-psycopg2.x86_64 0:2.0.14-2.el6   zlib-devel.x86_64 0:1.2.3-29.el6             

Dependency Installed:
  libmnl.x86_64 0:1.0.2-3.el6 libyaml.x86_64 0:0.1.3-4.el6_6 perl-Error.noarch 1:0.17015-4.el6 perl-Git.noarch 0:1.7.1-4.el6_7.1 postgresql-libs.x86_64 0:8.4.20-6.el6

  python.x86_64 0:2.6.6-66.el6_8                                                                                                                                        

Dependency Updated:
  libblkid.x86_64 0:2.17.2-12.24.el6_8.1   libuuid.x86_64 0:2.17.2-12.24.el6_8.1   python-libs.x86_64 0:2.6.6-66.el6_8   util-linux-ng.x86_64 0:2.17.2-12.24.el6_8.1  


Step: 2 Clone Git’s Netdata

All required packages and their dependencies are successfully installed. in our next step, we need to clone git’s netdata, so follow the next edition to do the same.

[[email protected] ~]# git clone --depth=1  # Clone the Netdata from git
Initialized empty Git repository in /root/netdata/.git/
remote: Counting objects: 1704, done.
remote: Compressing objects: 100% (1313/1313), done.
remote: Total 1704 (delta 1016), reused 755 (delta 369), pack-reused 0
Receiving objects: 100% (1704/1704), 3.82 MiB | 12 KiB/s, done.
Resolving deltas: 100% (1016/1016), done.

Step: 3 Install the package

Once cloning is complete, you will find a directory named NETDATA Change the directory in your current directory to netdata. Follow the sample output below.

[[email protected] ~]# ls
anaconda-ks.cfg  Desktop  Documents  Downloads  install.log  install.log.syslog  Music  netdata  Pictures  Public  Templates  Videos
[[email protected] ~]# cd netdata

Now install the Netdata by running the script file, i. H.

During the installation you will be asked to press ENTER To continue the installation process, press ENTER There.

[[email protected] netdata]# ./   # Start Netdata Installation 

  |.-.   .-.   .-.   .-.   .  netdata                                        
  |   '-'   '-'   '-'   '-'   real-time performance monitoring, done right!  

  You are about to build and install netdata to your system.

  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/
   - logrotate file at /etc/logrotate.d/netdata

  This installer allows you to change the installation path.
  Press Control-C and run the same command with --help for help.

Press ENTER to build and install netdata to your system > 

Once the netdata installation process is complete, you can see a screen like the one below. The default port used by netdata’s real-time performance monitor tool is 19999.

Step: 4 Access Netdata Web Access

Now you can access the Netdata Real-Time Performance Monitor tool via the URL http: // localhost: 19999 OR http: // your_IP address: 19999,

We can find so many other details in the following issue, i.e.

  • / usr / sbin / netdata – to start the Netdata service
  • killall netdata – to stop the Netdata service

To uninstall Netdata, go to the Netdata directory we cloned from git in step 2 and run the following command.

./   # To Uninstall Netdata

To uninstall Netdata, change to the Netdata directory

./   # To Update Netdata

Follow the sample output below.

netdata by default listens on all IPs on port 19999,
so you can access it with:

  http://this.machine.ip:19999/   # Access Netdata Web Access

To stop netdata, just kill it, with:

  killall netdata   # Stop Netdata

To start it, just run it:

  /usr/sbin/netdata   # Start Netdata Service

Uninstall script generated: ./
Update script generated   : ./ can work from cron. It will trigger an email from cron
only if it fails (it does not print anything if it can update netdata).
Run this to automatically check and install netdata updates once per day:

ln -s /root/netdata/ /etc/cron.daily/

 --- We are done! --- 

  |.-.   .-.   .-.   .-.   .-.   .  netdata                          .-.   .-
  |   '-'   '-'   '-'   '-'   '-'   is installed and running now!  -'   '-'  

  enjoy real-time performance and health monitoring...


Set up Netdata for the real-time system monitor on Linux

Netdata for real-time performance monitor web access

For an advanced configuration, you can edit and configure the main configuration file of netdata. See the following command.

[[email protected] netdata]# nano /etc/netdata/netdata.conf   # Edit main configuration file of Netdata

READ ALSO – How To Install Stacer System Optimizer In Ubuntu 19.04

You can use the Linux firewall, i.e. H. Iptables, stop or bypass the NetData port

[[email protected] ~]# /etc/init.d/iptables stop   # Stop IPTables Service
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:                               [  OK  ]

That’s all. In this article we explained setup Netdata for real-time performance monitoring In Linux system. I hope you like this article. If you like this article, just share it. If you have any questions about this article, please comment.