Netdata Mini Server

I have a mini PC currently not being used. Originally I bought this for pfsense firewall but have since moved to Ubiquiti Unifi Dream Machine Pro so I have a spare. I decided to make this a NetData server simply because I would like a central monitoring facility and NetData gives me everything I would want.

Hardware:

  • Qotom AES-Ni Mini PC – Amazon Link
    • 8GB RAM 240GB SSD (Came with 64G I upgraded)
    • 4 Intel LAN Port, VGA
    • 4 USB Port
    • Intel i5 Processor dual core 2.6 GHz

Software:

First things first

We need to install the epel-release package before we can get started. There are some sites out there that show how to install via Git but this will show how to install using epel repo which is much similar.

Install epel

# sudo yum -y install epel-release

Last metadata expiration check: 0:52:57 ago on Mon 07 Sep 2020 08:29:25 AM EDT.
Dependencies resolved.
===================================================================================
 Package                Architecture     Version            Repository        Size
===================================================================================
Installing:
 epel-release           noarch           8-8.el8            extras            23 k


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


Total download size: 23 k
Installed size: 32 k
Downloading Packages:
epel-release-8-8.el8.noarch.rpm                     77 kB/s |  23 kB     00:00    
-----------------------------------------------------------------------------------
Total                                               35 kB/s |  23 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                           1/1 
  Installing       : epel-release-8-8.el8.noarch                               1/1 
  Running scriptlet: epel-release-8-8.el8.noarch                               1/1 
  Verifying        : epel-release-8-8.el8.noarch                               1/1 


Installed:
  epel-release-8-8.el8.noarch                                                      


Complete!

Install netdata

# sudo dnf --enablerepo=epel -y install netdata

Extra Packages for Enterprise Linux Modular 8 - x8 186 kB/s | 117 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64     7.9 MB/s | 7.9 MB     00:00    
Dependencies resolved.
===================================================================================
 Package          Arch   Version                                   Repo       Size
===================================================================================
Installing:
 netdata          x86_64 1.23.2-1.el8                              epel      1.0 M
Installing dependencies:
 Judy             x86_64 1.0.5-18.module_el8.1.0+217+4d875839      AppStream 131 k
 netdata-conf     noarch 1.23.2-1.el8                              epel      111 k
 netdata-data     noarch 1.23.2-1.el8                              epel      1.2 M
 nodejs           x86_64 1:10.21.0-3.module_el8.2.0+391+8da3adc6   AppStream 8.9 M
 npm              x86_64 1:6.14.4-1.10.21.0.3.module_el8.2.0+391+8da3adc6
                                                                   AppStream 3.8 M
Installing weak dependencies:
 nodejs-full-i18n x86_64 1:10.21.0-3.module_el8.2.0+391+8da3adc6   AppStream 7.3 M
Enabling module streams:
 nodejs                  10                                                       


Transaction Summary
===================================================================================
Install  7 Packages


Total download size: 22 M
Installed size: 81 M
Downloading Packages:
(1/7): Judy-1.0.5-18.module_el8.1.0+217+4d875839.x 588 kB/s | 131 kB     00:00    
(2/7): nodejs-full-i18n-10.21.0-3.module_el8.2.0+3  13 MB/s | 7.3 MB     00:00    
(3/7): npm-6.14.4-1.10.21.0.3.module_el8.2.0+391+8  11 MB/s | 3.8 MB     00:00    
(4/7): nodejs-10.21.0-3.module_el8.2.0+391+8da3adc  14 MB/s | 8.9 MB     00:00    
(5/7): netdata-conf-1.23.2-1.el8.noarch.rpm        508 kB/s | 111 kB     00:00    
(6/7): netdata-data-1.23.2-1.el8.noarch.rpm        4.1 MB/s | 1.2 MB     00:00    
(7/7): netdata-1.23.2-1.el8.x86_64.rpm             2.9 MB/s | 1.0 MB     00:00    
-----------------------------------------------------------------------------------
Total                                               15 MB/s |  22 MB     00:01     
warning: /var/cache/dnf/epel-6519ee669354a484/packages/netdata-1.23.2-1.el8.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 2f86d6a1: NOKEY
Extra Packages for Enterprise Linux 8 - x86_64     1.6 MB/s | 1.6 kB     00:00    
Importing GPG key 0x2F86D6A1:
 Userid     : "Fedora EPEL (8) <epel@fedoraproject.org>"
 Fingerprint: 94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: npm-1:6.14.4-1.10.21.0.3.module_el8.2.0+391+8da3adc6.x8   1/1 
  Preparing        :                                                           1/1 
  Installing       : nodejs-full-i18n-1:10.21.0-3.module_el8.2.0+391+8da3adc   1/7 
  Installing       : npm-1:6.14.4-1.10.21.0.3.module_el8.2.0+391+8da3adc6.x8   2/7 
  Installing       : nodejs-1:10.21.0-3.module_el8.2.0+391+8da3adc6.x86_64     3/7 
  Installing       : netdata-data-1.23.2-1.el8.noarch                          4/7 
  Installing       : netdata-conf-1.23.2-1.el8.noarch                          5/7 
  Installing       : Judy-1.0.5-18.module_el8.1.0+217+4d875839.x86_64          6/7 
  Running scriptlet: netdata-1.23.2-1.el8.x86_64                               7/7 
  Installing       : netdata-1.23.2-1.el8.x86_64                               7/7 
  Running scriptlet: netdata-1.23.2-1.el8.x86_64                               7/7 
The current config file can be downloaded with the following command
curl -o /etc/netdata/netdata.conf http://localhost:19999/netdata.conf


  Verifying        : Judy-1.0.5-18.module_el8.1.0+217+4d875839.x86_64          1/7 
  Verifying        : nodejs-1:10.21.0-3.module_el8.2.0+391+8da3adc6.x86_64     2/7 
  Verifying        : nodejs-full-i18n-1:10.21.0-3.module_el8.2.0+391+8da3adc   3/7 
  Verifying        : npm-1:6.14.4-1.10.21.0.3.module_el8.2.0+391+8da3adc6.x8   4/7 
  Verifying        : netdata-1.23.2-1.el8.x86_64                               5/7 
  Verifying        : netdata-conf-1.23.2-1.el8.noarch                          6/7 
  Verifying        : netdata-data-1.23.2-1.el8.noarch                          7/7 


Installed:
  Judy-1.0.5-18.module_el8.1.0+217+4d875839.x86_64                                 
  netdata-1.23.2-1.el8.x86_64                                                      
  netdata-conf-1.23.2-1.el8.noarch                                                 
  netdata-data-1.23.2-1.el8.noarch                                                 
  nodejs-1:10.21.0-3.module_el8.2.0+391+8da3adc6.x86_64                            
  nodejs-full-i18n-1:10.21.0-3.module_el8.2.0+391+8da3adc6.x86_64                  
  npm-1:6.14.4-1.10.21.0.3.module_el8.2.0+391+8da3adc6.x86_64                      


Complete!

Configure & Enable Netdata

You will need to modify the config file and change the “bind to = localhost” to your server IP. IN this example I am using 10.0.1.165.

# vi /etc/netdata/netdata.conf
bind to = 10.0.1.165

# systemctl enable --now netdata
Created symlink /etc/systemd/system/multi-user.target.wants/netdata.service → /usr/lib/systemd/system/netdata.service.

Firewall Ports

If you have firewalld running you will need to open up some ports for netdata to work properly

Check if firewalld is running:
# firewall-cmd --state
running

Enable port pass through
# firewall-cmd --add-port=19999/tcp --permanent
success
# firewall-cmd reload
success

Accessing Netdata

In your browser simply type: [ http://your_ip:19999 ]

The home screen will show some very useful information related to your server. Later we will go over how to customize this but for now you can just play with the default config.

Note: installing from “epel” does not provide access via the cloud by default. In another session I will show how to use “https://app.netdata.cloud/

Have fun!

Advertisement