<\/span><\/h2>\n\n\n\nCheck the Operating system before you start with the steps for installing Netdata<\/p>\n\n\n\n
hostnamectl<\/pre>\n\n\n\nYou should see the following output:<\/p>\n\n\n\n
root@vps:~# hostnamectl\n Static hostname: rosehosting.vps\n Icon name: computer-vm\n Chassis: vm\n Machine ID: be3014108d530ef575a7cd9d690d9c84\n Boot ID: 9aab16e1549741bfa9e7a15388725cc2\n Virtualization: kvm\n Operating System: Debian GNU\/Linux 11 (bullseye)\n Kernel: Linux 5.10.0-9-amd64\n Architecture: x86-64\nroot@vps:~# cat \/etc\/issue\nDebian GNU\/Linux 11 \\n \\l<\/pre>\n\n\n\n<\/span>Step 1. Update the system<\/span><\/h2>\n\n\n\nIt is recommended before installing something on the server, the system is up to date. That is why we are going to update the system before we start with the command below:<\/p>\n\n\n\n
sudo apt update -y && sudo apt upgrade -y<\/pre>\n\n\n\n<\/span>Step 2. Install Netdata on Debian 11<\/span><\/h2>\n\n\n\nSince the Netdata is by default in the repository of Debian 11, we do not need to import anything like keys and repositories. We just need to execute the following command:<\/p>\n\n\n\n
sudo apt-get install netdata -y<\/pre>\n\n\n\nOnce, the installation is complete you need to start the netdata service:<\/p>\n\n\n\n
sudo systemctl start netdata<\/pre>\n\n\n\nAfter starting the service, the next step is to enable it in order the service starts automatically on server reboot:<\/p>\n\n\n\n
sudo systemctl enable netdata<\/pre>\n\n\n\nTo check the status of netdata service and verify that everything is running properly, execute the command below:<\/p>\n\n\n\n
sudo systemctl status netdata<\/pre>\n\n\n\nYou should see the following output:<\/p>\n\n\n\n
root@vps:~# sudo systemctl status netdata\n\u25cf netdata.service - netdata - Real-time performance monitoring\n Loaded: loaded (\/lib\/systemd\/system\/netdata.service; enabled; vendor preset: enabled)\n Active: active (running) since Fri 2021-11-05 08:28:35 EDT; 6min ago\n Docs: man:netdata\n file:\/\/\/usr\/share\/doc\/netdata\/html\/index.html\n https:\/\/github.com\/netdata\/netdata\n Main PID: 2076 (netdata)\n Tasks: 30 (limit: 4678)\n Memory: 72.7M\n CPU: 52.693s\n CGroup: \/system.slice\/netdata.service\n \u251c\u25002076 \/usr\/sbin\/netdata -D\n \u251c\u25002101 \/usr\/sbin\/netdata --special-spawn-server\n \u251c\u25002379 \/usr\/lib\/netdata\/plugins.d\/nfacct.plugin 1\n \u251c\u25002382 bash \/usr\/lib\/netdata\/plugins.d\/tc-qos-helper.sh 1\n \u251c\u25002386 \/usr\/bin\/python3 \/usr\/lib\/netdata\/plugins.d\/python.d.plugin 1\n \u2514\u25002409 \/usr\/lib\/netdata\/plugins.d\/apps.plugin 1\n\nNov 05 08:28:35 rosehosting.vps netdata[2076]: 2021-11-05 08:28:35: netdata INFO : MAIN : Created file '\/var\/lib\/netdata\/dbengine_multihost_size' to store the computed value<\/pre>\n\n\n\nAnother way to check if there is a running process of netdata, execute the following command:<\/p>\n\n\n\n
netstat -tunlp | grep 19999<\/pre>\n\n\n\nYou should get the following output<\/p>\n\n\n\n
root@vps:~# netstat -tunlp | grep 19999\ntcp 0 0 127.0.0.1:19999 0.0.0.0:* LISTEN 2076\/netdata<\/pre>\n\n\n\n