Installing Netdata on Debian 11
Page 1 of 1
Installing Netdata on Debian 11
Installing Netdata on Debian 11
Since Netdata has been included in the official Debian repositories, we don’t have to do much to install it. In other words, we don’t have to add repositories or anything similar to that.So, open an SSH connection to your server and update it.
- Code:
sudo apt update
sudo apt upgrade
After that, run the following command to install Netdata on Debian 11.
sudo apt install netdata
This will simply install Netdata.
Working with the Netdata service
The installation of Netdata also includes the installation of a service with which we can manage the Netdata execution.So, to start it you have to execute
sudo systemctl start netdata
It is also advisable to leave it enabled to start with the system
sudo systemctl enable netdata
To check if the service and therefore the program is running, you can use the following command
sudo systemctl status netdata
If we get an output similar to this, then we can be sure that the program is running properly.
1.- Netdata service status
If you want to stop the program then run
sudo systemctl stop netdata
Then you can with the help of the
- Code:
systemctl
Configure Netdata to be accessible from any host
The Netdata configuration file is- Code:
/etc/netdata/netdata.conf
So, make a backup of this before using it.
- Code:
sudo cp /etc/netdata/netdata.conf /etc/netdata/netdata.conf.bak
And now if you edit it
- Code:
sudo nano /etc/netdata/netdata.conf
The value you have to modify is
- Code:
bind socket to IP
- Code:
bind socket to IP = X.X.X.X.X.X
Save the changes and close the editor.
Apply the changes by restarting the service
sudo systemctl restart netdata
Setting the Firewall before using it
Now we have to add a rule in the Firewall to make Netdata accessible. In short, we have to open port- Code:
19999
So, run
- Code:
sudo ufw allow 19999/tcp
Apply the changes by running
- Code:
sudo ufw reload
Access to Netdata on Debian 11
Now you can open a web browser from one of the clients and access Netdata. To do this, go to the address- Code:
http://IP-SERVER:19999
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|