AMP AMP

How to install Netdata on Rocky Linux 8.6

To install Netdata on Rocky Linux 8.6

Introduction :

Netdata is an open source tool designed to collect real-time metrics including CPU usage, disk activity, bandwidth usage, website visits, etc., and then display them in live, easy-to-interpret charts.

Installation Procedure :

Step 1: Check the OS version by using the below command

[root@linuxhelp ~]# cat /etc/os-release 
NAME="Rocky Linux"
VERSION="8.6 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.6 (Green Obsidian)"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky Linux"
ROCKY_SUPPORT_PRODUCT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8"

Step 2: Next install the netdata by running the script mentioned below

[root@linuxhelp ~]# bash <(curl -Ss https://my-netdata.io/kickstart.sh)
/dev/fd/63: line 35: cd: pipe:[114197]: No such file or directory

 --- Using /tmp/netdata-kickstart-rt18iMzqRi as a temporary directory. --- 
 --- Checking for existing installations of Netdata... --- 
 --- No existing installations of netdata found, assuming this is a fresh install. --- 
 --- Attempting to install using native packages... --- 
 --- Checking for availability of repository configuration package. --- 
[/tmp/netdata-kickstart-rt18iMzqRi]# curl --fail -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-kickstart-rt18iMzqRi/netdata-repo-edge-1-2.noarch.rpm https://packagecloud.io/netdata/netdata-repoconfig/packages/el/8/netdata-repo-edge-1-2.noarch.rpm/download.rpm 
 OK 

[/tmp/netdata-kickstart-rt18iMzqRi]# env dnf install /tmp/netdata-kickstart-rt18iMzqRi/netdata-repo-edge-1-2.noarch.rpm 
Rocky Linux 8 - AppStream                                           6.6 kB/s | 4.8 kB     00:00    
Rocky Linux 8 - AppStream                                           3.5 MB/s |  11 MB     00:03    
Rocky Linux 8 - BaseOS                                              6.0 kB/s | 4.3 kB     00:00    
Rocky Linux 8 - BaseOS                                              3.3 MB/s | 7.9 MB     00:02    
Rocky Linux 8 - Extras                                              4.6 kB/s | 3.5 kB     00:00   
 
Rocky Linux 8 - Extras                                               13 kB/s |  12 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                      9.2 kB/s | 8.5 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                      2.9 MB/s |  13 MB     00:04    
Extra Packages for Enterprise Linux Modular 8 - x86_64              8.6 kB/s | 9.9 kB     00:01    
Extra Packages for Enterprise Linux Modular 8 - x86_64              501 kB/s | 733 kB     00:01    
Remi's Modular repository for Enterprise Linux 8 - x86_64           726  B/s | 833  B     00:01    
Remi's Modular repository for Enterprise Linux 8 - x86_64           453 kB/s | 1.1 MB     00:02    
Safe Remi's RPM repository for Enterprise Linux 8 - x86_64          526  B/s | 833  B     00:01    
Safe Remi's RPM repository for Enterprise Linux 8 - x86_64          774 kB/s | 2.3 MB     00:03    
Dependencies resolved.
====================================================================================================
 Package                       Architecture       Version            Repository                Size
====================================================================================================
Installing:
 netdata-repo-edge             noarch             1-2                @commandline             6.9 k

Transaction Summary
====================================================================================================
Install  1 Package

Total size: 6.9 k
Installed size: 580  
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction

  Preparing        :                                                                            1/1 
  Installing       : netdata-repo-edge-1-2.noarch                                               1/1 
  Verifying        : netdata-repo-edge-1-2.noarch                                               1/1 

Installed:
  netdata-repo-edge-1-2.noarch                                                                      

Complete!
 OK 

Step 3: Run the env dnf command for further process.

[/tmp/netdata-kickstart-rt18iMzqRi]# env dnf makecache 
Netdata Edge                                                        182  B/s | 833  B     00:04    
Netdata Edge                                                        3.7 kB/s | 3.9 kB     00:01    
Importing GPG key 0x4B987DCC:
 Userid     : "https://packagecloud.io/netdata/netdata-edge (https://packagecloud.io/docs#gpg_signing) <support@packagecloud.io>"
 Fingerprint: F3A9 5D59 F9CE 7471 B2D0 1381 98CC 3E6A 4B98 7DCC
 From       : https://packagecloud.io/netdata/netdata-edge/gpgkey
Is this ok [y/N]: y
Netdata Edge                                                        2.6 kB/s |  14 kB     00:05    
Netdata Repository Config                                           225  B/s | 833  B     00:03    
Netdata Repository Config                                           3.7 kB/s | 3.9 kB     00:01    
Importing GPG key 0x9E85D1A8:
 Userid     : "https://packagecloud.io/netdata/netdata-repoconfig (https://packagecloud.io/docs#gpg_signing) <support@packagecloud.io>"
 Fingerprint: 8D5A 60A4 8BBA 22E1 EE2B 670E 22B8 89B9 9E85 D1A8
 From       : https://packagecloud.io/netdata/netdata-repoconfig/gpgkey
Is this ok [y/N]: y
Netdata Repository Config                                           197  B/s | 1.3 kB     00:06    
Rocky Linux 8 - AppStream                                           5.9 kB/s | 4.8 kB     00:00    
Rocky Linux 8 - BaseOS                                              5.5 kB/s | 4.3 kB     00:00    
Rocky Linux 8 - Extras                                              4.2 kB/s | 3.5 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                       12 kB/s | 8.5 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64               13 kB/s | 9.9 kB     00:00    
Remi's Modular repository for Enterprise Linux 8 - x86_64           708  B/s | 833  B     00:01    



Safe Remi's RPM repository for Enterprise Linux 8 - x86_64          709  B/s | 833  B     00:01    
Metadata cache created.
 OK 

Last metadata expiration check: 0:00:01 ago on Sat 24 Sep 2022 01:55:47 PM EDT.

Step 4: Install netdata by env dnf command

[/tmp/netdata-kickstart-rt18iMzqRi]# env dnf install netdata 
Last metadata expiration check: 0:00:03 ago on Sat 24 Sep 2022 01:55:47 PM EDT.
Dependencies resolved.
====================================================================================================
 Package                     Arch     Version                                  Repository      Size
====================================================================================================
Installing:
 netdata                     x86_64   1.36.0.144.nightly-1.el8                 netdata-edge    41 M
Installing dependencies:
 libatomic                   x86_64   8.5.0-10.1.el8_6                         baseos          23 k
 libuv                       x86_64   1:1.41.1-1.el8_4                         appstream      155 k
 protobuf                    x86_64   3.5.0-13.el8                             appstream      891 k
 python38                    x86_64   3.8.12-1.module+el8.6.0+794+eba84017     appstream       78 k
 python38-libs               x86_64   3.8.12-1.module+el8.6.0+794+eba84017     appstream      8.3 M
 python38-pip-wheel          noarch   19.3.1-5.module+el8.6.0+794+eba84017     appstream      1.0 M
 python38-setuptools-wheel   noarch   41.6.0-5.module+el8.5.0+672+ab6eb015     appstream      303 k
Installing weak dependencies:
 python38-pip                noarch   19.3.1-5.module+el8.6.0+794+eba84017     appstream      1.8 M
 python38-setuptools         noarch   41.6.0-5.module+el8.5.0+672+ab6eb015     appstream      667 k



Enabling module streams:
 python38                             3.8                                                          

Transaction Summary
====================================================================================================
Install  10 Packages

Total download size: 54 M
Installed size: 235 M
Is this ok [y/N]: y
Downloading Packages:
(1/10): libuv-1.41.1-1.el8_4.x86_64.rpm                             603 kB/s | 155 kB     00:00    
(2/10): python38-3.8.12-1.module+el8.6.0+794+eba84017.x86_64.rpm    1.3 MB/s |  78 kB     00:00    
(3/10): protobuf-3.5.0-13.el8.x86_64.rpm                            2.0 MB/s | 891 kB     00:00    
(4/10): python38-pip-19.3.1-5.module+el8.6.0+794+eba84017.noarch.rp 3.4 MB/s | 1.8 MB     00:00    
(5/10): python38-pip-wheel-19.3.1-5.module+el8.6.0+794+eba84017.noa 3.0 MB/s | 1.0 MB     00:00    
(6/10): python38-setuptools-41.6.0-5.module+el8.5.0+672+ab6eb015.no 2.9 MB/s | 667 kB     00:00    
(7/10): python38-setuptools-wheel-41.6.0-5.module+el8.5.0+672+ab6eb 1.7 MB/s | 303 kB     00:00    
(8/10): libatomic-8.5.0-10.1.el8_6.x86_64.rpm                       284 kB/s |  23 kB     00:00    
(9/10): python38-libs-3.8.12-1.module+el8.6.0+794+eba84017.x86_64.r 3.6 MB/s | 8.3 MB     00:02    
(10/10): netdata-1.36.0.144.nightly-1.el8.x86_64.rpm                4.4 MB/s |  41 MB     00:09    
----------------------------------------------------------------------------------------------------
Total                                                               5.2 MB/s |  54 MB     00:10     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.




Running transaction
  Preparing        :                                                                            1/1 
  Installing       : libatomic-8.5.0-10.1.el8_6.x86_64                                         1/10 
  Running scriptlet: libatomic-8.5.0-10.1.el8_6.x86_64                                         1/10 
  Installing       : python38-setuptools-wheel-41.6.0-5.module+el8.5.0+672+ab6eb015.noarch     2/10 
  Installing       : python38-pip-wheel-19.3.1-5.module+el8.6.0+794+eba84017.noarch            3/10 
  Installing       : python38-libs-3.8.12-1.module+el8.6.0+794+eba84017.x86_64                 4/10 
  Installing       : python38-3.8.12-1.module+el8.6.0+794+eba84017.x86_64                      5/10 
  Running scriptlet: python38-3.8.12-1.module+el8.6.0+794+eba84017.x86_64                      5/10 
  Installing       : python38-setuptools-41.6.0-5.module+el8.5.0+672+ab6eb015.noarch           6/10 
  Running scriptlet: python38-setuptools-41.6.0-5.module+el8.5.0+672+ab6eb015.noarch           6/10 
  Installing       : python38-pip-19.3.1-5.module+el8.6.0+794+eba84017.noarch                  7/10 
  Running scriptlet: python38-pip-19.3.1-5.module+el8.6.0+794+eba84017.noarch                  7/10 
  Installing       : protobuf-3.5.0-13.el8.x86_64                                              8/10 
  Installing       : libuv-1:1.41.1-1.el8_4.x86_64                                             9/10 
  Running scriptlet: netdata-1.36.0.144.nightly-1.el8.x86_64                                  10/10 
  Installing       : netdata-1.36.0.144.nightly-1.el8.x86_64                                  10/10 
  Running scriptlet: netdata-1.36.0.144.nightly-1.el8.x86_64                                  10/10 
Created symlink /etc/systemd/system/multi-user.target.wants/netdata.service → /usr/lib/systemd/system/netdata.service.

  Verifying        : netdata-1.36.0.144.nightly-1.el8.x86_64                                   1/10 
  Verifying        : libuv-1:1.41.1-1.el8_4.x86_64                                             2/10 
  Verifying        : protobuf-3.5.0-13.el8.x86_64                                              3/10 
  Verifying        : python38-3.8.12-1.module+el8.6.0+794+eba84017.x86_64                      4/10 

  Verifying        : python38-libs-3.8.12-1.module+el8.6.0+794+eba84017.x86_64                 5/10 
  Verifying        : python38-pip-19.3.1-5.module+el8.6.0+794+eba84017.noarch                  6/10 
  Verifying        : python38-pip-wheel-19.3.1-5.module+el8.6.0+794+eba84017.noarch            7/10 
  Verifying        : python38-setuptools-41.6.0-5.module+el8.5.0+672+ab6eb015.noarch           8/10 
  Verifying        : python38-setuptools-wheel-41.6.0-5.module+el8.5.0+672+ab6eb015.noarch     9/10 
  Verifying        : libatomic-8.5.0-10.1.el8_6.x86_64                                        10/10 

Installed:
  libatomic-8.5.0-10.1.el8_6.x86_64                                                                 
  libuv-1:1.41.1-1.el8_4.x86_64                                                                     
  netdata-1.36.0.144.nightly-1.el8.x86_64                                                           
  protobuf-3.5.0-13.el8.x86_64                                                                      
  python38-3.8.12-1.module+el8.6.0+794+eba84017.x86_64                                              
  python38-libs-3.8.12-1.module+el8.6.0+794+eba84017.x86_64                                         
  python38-pip-19.3.1-5.module+el8.6.0+794+eba84017.noarch                                          
  python38-pip-wheel-19.3.1-5.module+el8.6.0+794+eba84017.noarch                                    
  python38-setuptools-41.6.0-5.module+el8.5.0+672+ab6eb015.noarch                                   
  python38-setuptools-wheel-41.6.0-5.module+el8.5.0+672+ab6eb015.noarch                             

Complete!
 OK 

Sat Sep 24 13:56:21 EDT 2022 : INFO: netdata-updater.sh:  Auto-updating has been ENABLED through cron, updater script linked to /etc/cron.daily/netdata-updater\n
Sat Sep 24 13:56:21 EDT 2022 : INFO: netdata-updater.sh:  If the update process fails and you have email notifications set up correctly for cron on this system, you should receive an email notification of the failure.
Sat Sep 24 13:56:21 EDT 2022 : INFO: netdata-updater.sh:  Successful updates will not send an email.
Successfully installed the Netdata Agent.

Official documentation can be found online at https://learn.netdata.cloud/docs/.



Looking to monitor all of your infrastructure with Netdata? Check out Netdata Cloud at https://app.netdata.cloud.

Join our community and connect with us on:
  - GitHub: https://github.com/netdata/netdata/discussions
  - Discord: https://discord.gg/5ygS846fR6
  - Our community forums: https://community.netdata.cloud/

Step 5: Grep the port number if available

[root@linuxhelp ~]# netstat -tulnp | grep 19999
tcp        0      0 0.0.0.0:19999           0.0.0.0:*               LISTEN      39995/netdata       
tcp6       0      0 :::19999                :::*                    LISTEN      39995/netdata

Step 6: Enable the netdata by using the below command

 [root@linuxhelp ~]# systemctl enable netdata

Step 7: Check the status by using the below command

[root@linuxhelp ~]# systemctl status netdata
● netdata.service - Real time performance monitoring
  Loaded: loaded (/usr/lib/systemd/system/netdata.service; enabled; vendor preset: disabled)
  Active: active (running) since Sat 2022-09-24 13:56:20 EDT; 1min 13s ago
Main PID: 39995 (netdata)
   Tasks: 37 (limit: 23328)
  Memory: 99.1M
  CGroup: /system.slice/netdata.service
          ├─39995 /usr/sbin/netdata -P /run/netdata/netdata.pid -D
          ├─40001 /usr/sbin/netdata --special-spawn-server
          ├─40772 bash /usr/libexec/netdata/plugins.d/tc-qos-helper.sh 1
          ├─40777 /usr/libexec/netdata/plugins.d/apps.plugin 1
          └─40781 /usr/libexec/netdata/plugins.d/go.d.plugin 1

Sep 24 13:56:20 linuxhelp netdata[39995]: 2022-09-24 13:56:20: netdata INFO  : MAIN : CONFIG: canno>
Sep 24 13:56:20 linuxhelp netdata[39995]: 2022-09-24 13:56:20: netdata INFO  : MAIN : Found 0 legac>
Sep 24 13:56:20 linuxhelp netdata[39995]: 2022-09-24 13:56:20: netdata INFO  : MAIN : Created file >

Sep 24 13:56:20 linuxhelp netdata[39995]: Found 0 legacy dbengines, setting multidb diskspace to 25>
Sep 24 13:56:20 linuxhelp netdata[39995]: Created file '/var/lib/netdata/dbengine_multihost_size' t>
Sep 24 13:56:22 linuxhelp ebpf.plugin[40779]: Does not have a configuration file inside `/etc/netda>
Sep 24 13:56:22 linuxhelp ebpf.plugin[40779]: Name resolution is disabled, collector will not parse>
Sep 24 13:56:22 linuxhelp ebpf.plugin[40779]: The network value of CIDR 127.0.0.1/8 was updated for>
Sep 24 13:56:22 linuxhelp ebpf.plugin[40779]: Cannot read process groups configuration file '/etc/n>
Sep 24 13:56:22 linuxhelp ebpf.plugin[40779]: ebpf.plugin should either run as root (now running wi>

Step 8: Start the service and check the status by using the below command

 [root@linuxhelp ~]# systemctl start netdata
 [root@linuxhelp ~]# systemctl status netdata
● netdata.service - Real time performance monitoring
   Loaded: loaded (/usr/lib/systemd/system/netdata.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2022-09-24 13:56:20 EDT; 1min 40s ago
 Main PID: 39995 (netdata)
    Tasks: 37 (limit: 23328)
   Memory: 99.1M
   CGroup: /system.slice/netdata.service
           ├─39995 /usr/sbin/netdata -P /run/netdata/netdata.pid -D
           ├─40001 /usr/sbin/netdata --special-spawn-server
           ├─40772 bash /usr/libexec/netdata/plugins.d/tc-qos-helper.sh 1
           ├─40777 /usr/libexec/netdata/plugins.d/apps.plugin 1
           └─40781 /usr/libexec/netdata/plugins.d/go.d.plugin 1

Sep 24 13:56:20 linuxhelp netdata[39995]: 2022-09-24 13:56:20: netdata INFO  : MAIN : CONFIG: canno>
Sep 24 13:56:20 linuxhelp netdata[39995]: 2022-09-24 13:56:20: netdata INFO  : MAIN : Found 0 legac>
Sep 24 13:56:20 linuxhelp netdata[39995]: 2022-09-24 13:56:20: netdata INFO  : MAIN : Created file >
Sep 24 13:56:20 linuxhelp netdata[39995]: Found 0 legacy dbengines, setting multidb diskspace to 25>

Sep 24 13:56:20 linuxhelp netdata[39995]: Created file '/var/lib/netdata/dbengine_multihost_size' t>
Sep 24 13:56:22 linuxhelp ebpf.plugin[40779]: Does not have a configuration file inside `/etc/netda>
Sep 24 13:56:22 linuxhelp ebpf.plugin[40779]: Name resolution is disabled, collector will not parse>
Sep 24 13:56:22 linuxhelp ebpf.plugin[40779]: The network value of CIDR 127.0.0.1/8 was updated for>
Sep 24 13:56:22 linuxhelp ebpf.plugin[40779]: Cannot read process groups configuration file '/etc/n>
Sep 24 13:56:22 linuxhelp ebpf.plugin[40779]: ebpf.plugin should either run as root (now running wi>

Step 9: Allow the port in firewall and reload by using the below command

 [root@linuxhelp ~]# firewall-cmd --add-port=19999/tcp --permanent 
success
[root@linuxhelp ~]# firewall-cmd --reload 
success

Step 10: Check the IP address by using the below command

 [root@linuxhelp ~]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.6.121  netmask 255.255.254.0  broadcast 192.168.7.255
        inet6 fe80::20c:29ff:fe20:63bc  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:20:63:bc  txqueuelen 1000  (Ethernet)
        RX packets 270621  bytes 403279661 (384.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 51247  bytes 3683075 (3.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 3354  bytes 341332 (333.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3354  bytes 341332 (333.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0



virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:f0:07:57  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Step 11: Finally search the localhost with port number in the web browser. Here you can see the installed netdata monitoring tool as shown in the below image

Conclusion:

With this the process of Installing and configuring Netdata on Rocky Linux 8.6 has comes to an end.

FAQ
Q
What is the command line for checking the status of netdata?
A
The command line for checking the status of netdata is systemctl status netdata.
Q
How do you restart the firewall?
A
To restart the firewall use ufw reload
Q
What is the default port number for Netdata on a firewall?
A
The default port number for Netdata on a firewall is ufw allow 19999/tcp
Q
What is the command line for checking the netdata running status using the port number?
A
The command line for checking the netdata running status using the port number is netstat -tulnp | grep 19999.
Q
How do you install netdata by running the script?
A
Bash <(curl -Ss https://my-netdata.io/kickstart.sh)