How To Install Netdata On Linux Mint 20.2
To Install Netdata On Linux Mint 20.2
Introduction :
Netdata is an open source tool designed to collect real-time metrics, such as CPU usage, disk activity, bandwidth usage, website visits, etc., and then display them in live, easy-to-interpret charts.
Step 1 : Check the version of the OS
root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description: Linux Mint 20.2
Release: 20.2
Codename: uma
Step 2 : Installing netdata by running the kickstart.sh script
root@linuxhelp:~# bash <(curl -Ss https://my-netdata.io/kickstart.sh)
System : Linux
Operating System : GNU/Linux
Machine : x86_64
BASH major version:
--- Fetching script to detect required packages... ---
[/tmp/netdata-kickstart-23o3iTVom9]# curl -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-kickstart-23o3iTVom9/install-required-packages.sh https://raw.githubusercontent.com/netdata/netdata/master/packaging/installer/install-required-packages.sh OK
--- Running downloaded script to detect required packages... ---
[/tmp/netdata-kickstart-23o3iTVom9]# /usr/bin/bash /tmp/netdata-kickstart-23o3iTVom9/install-required-packages.sh netdata Loading /etc/os-release ...
Unknown distribution ID: linuxmint
/etc/os-release information:
NAME : Linux Mint
VERSION : 20.2 (Uma)
ID : linuxmint
ID_LIKE : ubuntu
VERSION_ID : 20.2
We detected these:
Distribution : ubuntu
Version : 20.2
Codename : 20.2 (Uma)
Package Manager : install_apt_get
Packages Tree : debian
Detection Method: /etc/os-release
Default Python v: 3
Searching for distro_sdk ...
Searching for git ...
> Checking if package 'git' is installed...
Searching for gxx ...
> Checking if package 'g++' is installed...
dpkg-query: no packages found matching g++
Searching for autoconf ...
> Checking if package 'autoconf' is installed...
Searching for autoconf_archive ...
> Checking if package 'autoconf-archive' is installed...
dpkg-query: no packages found matching autoconf-archive
Searching for autogen ...
To enable it run:
echo 1 >/sys/kernel/mm/ksm/run
echo 1000 >/sys/kernel/mm/ksm/sleep_millisecs
If you enable it, you will save 40-60% of netdata memory.
--- Check version.txt ---
--- Check apps.plugin ---
--- Copy uninstaller ---
--- Basic netdata instructions ---
netdata by default listens on all IPs on port 19999,
so you can access it with:
http://this.machine.ip:19999/
To stop netdata run:
systemctl stop netdata
To start netdata run:
systemctl start netdata
Uninstall script copied to: /usr/libexec/netdata/netdata-uninstaller.sh
--- Installing (but not enabling) the netdata updater tool ---
Failed to disable unit: Unit file netdata-updater.timer does not exist.
Update script is located at /usr/libexec/netdata/netdata-updater.sh
--- Check if we must enable/disable the netdata updater tool ---
Auto-updating has been enabled through cron, updater script linked to /etc/cron.daily/netdata-updater
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.
Successful updates will not send an email.
--- Wrap up environment set up ---
Preparing .environment file
[/tmp/netdata-kickstart-23o3iTVom9/netdata-v1.32.1-24-gc6ba97f57]# chmod 0644 /etc/netdata/.environment
OK
Setting netdata.tarball.checksum to 'new_installation'
--- We are done! ---
^
|.-. .-. .-. .-. .-. . netdata .-. .-
| '-' '-' '-' '-' '-' is installed and running now! -' '-'
+----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->
enjoy real-time performance and health monitoring...
OK
Step 3 : check the netdata running status by using default port number
root@linuxhelp:~# netstat -tulnp | grep 19999
tcp 0 0 0.0.0.0:19999 0.0.0.0:* LISTEN 47883/netdata
tcp6 0 0 :::19999 :::* LISTEN 47883/netdata
Step 4 : check the status of netdata
root@linuxhelp:~# systemctl status netdata
● netdata.service - Real time performance monitoring
Loaded: loaded (/lib/systemd/system/netdata.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-12-24 05:40:47 IST; 1min 12s ago
Process: 47864 ExecStartPre=/bin/mkdir -p /var/cache/netdata (code=exited, status=0/SUCCESS)
Process: 47874 ExecStartPre=/bin/chown -R netdata:netdata /var/cache/netdata (code=exited, status=0/SUCCESS)
Process: 47879 ExecStartPre=/bin/mkdir -p /var/run/netdata (code=exited, status=0/SUCCESS)
Process: 47882 ExecStartPre=/bin/chown -R netdata:netdata /var/run/netdata (code=exited, status=0/SUCCESS)
Main PID: 47883 (netdata)
Tasks: 39 (limit: 4579)
Memory: 78.5M
CGroup: /system.slice/netdata.service
├─47883 /usr/sbin/netdata -P /var/run/netdata/netdata.pid -D
├─47901 /usr/sbin/netdata --special-spawn-server
├─48068 bash /usr/libexec/netdata/plugins.d/tc-qos-helper.sh 1
├─48083 /usr/libexec/netdata/plugins.d/apps.plugin 1
├─48088 /usr/libexec/netdata/plugins.d/go.d.plugin 1
└─48090 /usr/bin/python3 /usr/libexec/netdata/plugins.d/python.d.plugin 1
Dec 24 05:40:47 linuxhelp netdata[47883]: 2021-12-24 05:40:47: netdata INFO : MAIN : CONFIG: cannot load cloud config '/var/lib/netda>
Dec 24 05:40:47 linuxhelp netdata[47883]: 2021-12-24 05:40:47: netdata INFO : MAIN : Found 0 legacy dbengines, setting multidb disksp>
Dec 24 05:40:47 linuxhelp netdata[47883]: 2021-12-24 05:40:47: netdata INFO : MAIN : Created file '/var/lib/netdata/dbengine_multihos>
Dec 24 05:40:47 linuxhelp netdata[47883]: Found 0 legacy dbengines, setting multidb diskspace to 256MB
Dec 24 05:40:47 linuxhelp netdata[47883]: Created file '/var/lib/netdata/dbengine_multihost_size' to store the computed value
Dec 24 05:40:48 linuxhelp ebpf.plugin[48087]: Does not have a configuration file inside `/etc/netdata/ebpf.d.conf. It will try to load>
Dec 24 05:40:48 linuxhelp ebpf.plugin[48087]: Name resolution is disabled, collector will not parser "hostnames" list.
Dec 24 05:40:48 linuxhelp ebpf.plugin[48087]: The network value of CIDR 127.0.0.1/8 was updated for 127.0.0.0 .
Dec 24 05:40:48 linuxhelp ebpf.plugin[48087]: PROCFILE: Cannot open file '/etc/netdata/apps_groups.conf'
Dec 24 05:40:48 linuxhelp ebpf.plugin[48087]: Cannot read process groups configuration file '/etc/netdata/apps_groups.conf'. Will try >
Step 5 : Allow the netdata default portnumber on firewall
root@linuxhelp:~# ufw allow 19999/tcp
Rules updated
Rules updated (v6)
Step 6 : Restart the firewall
root@linuxhelp:~# ufw reload
Firewall not enabled (skipping reload)
Step 7 : Enable the firewall
root@linuxhelp:~# ufw enable
Firewall is active and enabled on system startup
Step 8 : Restart the firewall
root@linuxhelp:~# ufw reload
Firewall reloaded
Step 9 : check the status of firewall
root@linuxhelp:~# ufw status
Status: active
To Action From
-- ------ ----
19999/tcp ALLOW Anywhere
19999/tcp (v6) ALLOW Anywhere (v6)
Now, open the Netdata monitoring tool using a browser and use the IP address of the server where installed the Netdata.
Sep 10 : Netdata dashboard
With this process of installation Netdata monitoring tool on Linux Mint 20.2 come to an end
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 portnumber ?
A
The command-line for checking the netdata running status using portnumber 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)