How to Install Netdata on Linux Mint 20
To Install Netdata on Linux Mint 20
Introduction:
Netdata is an open-source tool designed to collect real-time metrics including CPU usage, Disk activity, Bandwidth, etc., and also to display it lively and manageable to interpret charts. It is designed to visualize activity detailedly and allows the user to obtain an overview of what is happening and happened in the system or application. This tutorial will cover the installation of the Netdata on Linux Mint 20.
Installation Procedure:
Check the version of the Linux Mint 20
root@LinuxHelp:~# cat /etc/os-release
NAME="Linux Mint"
VERSION="20 (Ulyana)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 20"
VERSION_ID="20"
Update the packages by using the following command
root@LinuxHelp:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Ign:4 http://packages.linuxmint.com ulyana InRelease
.
.
Building dependency tree
Reading state information... Done
403 packages can be upgraded. Run 'apt list --upgradable' to see them
Now upgrade the packages by using the following command
root@LinuxHelp:~# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
libllvm10 linux-headers-5.4.0-58 linux-headers-5.4.0-58-generic linux-image-5.4.0-58-generic
linux-modules-5.4.0-58-generic linux-modules-extra-5.4.0-58-generic python3-click python3-colorama
python3-packaging python3-pyparsing
The following packages will be upgraded:
accountsservice adwaita-icon-theme adwaita-icon-theme-full alsa-ucm-conf alsa-utils apparmor apt apt-utils
aptdaemon aptdaemon-data base-files bash bind9-dnsutils bind9-host bind9-libs bolt bsdutils busybox-initramfs
busybox-static ca-certificates casper cifs-utils cinnamon cinnamon-common cinnamon-control-center
.
.
.
done
Processing triggers for ca-certificates (20201027ubuntu0.20.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
done.
Processing triggers for initramfs-tools (0.136ubuntu6.3) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-58-generic
Processing triggers for libc-bin (2.31-0ubuntu9.1) .
Once the above the process is completed then install the Netdata by using the following command
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-C6jJEXd5gt]# curl -q -sSL --connect-timeout 10 --retry 3 --output /tmp/netdata-kickstart-C6jJEXd5gt/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-C6jJEXd5gt]# /bin/bash /tmp/netdata-kickstart-C6jJEXd5gt/install-required-packages.sh netdata Loading /etc/os-release ...
Unknown distribution ID: linuxmint
/etc/os-release information:
NAME : Linux Mint
VERSION : 20 (Ulyana)
ID : linuxmint
ID_LIKE : ubuntu
VERSION_ID : 20
.
.
.
Preparing .environment file
[/tmp/netdata-kickstart-C6jJEXd5gt/netdata-v1.26.0-400-gced86e2d]# 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
Once the installation is completed then start the Netdata service by using the command
root@LinuxHelp:~# systemctl start netdata
Then enable the Netdata service by using the following command
root@LinuxHelp:~# systemctl enable netdata
Once the service is started then check the status of the Netdata
root@LinuxHelp:~# systemctl status netdata
● netdata.service - Real time performance monitoring
Loaded: loaded (/lib/systemd/system/netdata.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2020-12-16 21:27:45 IST; 4s ago
Process: 77699 ExecStartPre=/bin/mkdir -p /var/cache/netdata (code=exited, status=0/SUCCESS)
Process: 77704 ExecStartPre=/bin/chown -R netdata:netdata /var/cache/netdata (code=exited, status=0/SUCCESS)
Process: 77716 ExecStartPre=/bin/mkdir -p /var/run/netdata (code=exited, status=0/SUCCESS)
Process: 77717 ExecStartPre=/bin/chown -R netdata:netdata /var/run/netdata (code=exited, status=0/SUCCESS)
Process: 77718 ExecStart=/usr/sbin/netdata -P /var/run/netdata/netdata.pid -D (code=exited, status=1/FAILURE)
Process: 77719 ExecStopPost=/usr/libexec/netdata/plugins.d/reset_netdata_trace.sh (code=exited, status=0/SUCCESS)
Main PID: 77718 (code=exited, status=1/FAILURE)
Dec 16 21:27:45 LinuxHelp systemd[1]: netdata.service: Failed with result 'exit-code'.
Now allow the firewall to the Netdata
root@LinuxHelp:~# ufw allow 19999/tcp
Rules updated
Rules updated (v6)
With this method, the installation of the Netdata comes to an end.