PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Installing Netdata on Debian 11

Go down

Installing Netdata on Debian 11 Empty Installing Netdata on Debian 11

Post by jamied_uk 15th July 2022, 08:46

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.
Installing Netdata on Debian 11 2-10-1024x3571.- 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
command manage the operation of Netdata.

Configure Netdata to be accessible from any host

The Netdata configuration file is
Code:
/etc/netdata/netdata.conf
and inside it, we have a value to modify.
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
to which you have to assign the IP address of the server where you are running it.
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
of the TCP protocol for this.
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
.
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum