Instalar NETdata en Ubuntu Server 24.04

#1. Actualiza el sistema

text
sudo apt update -y && sudo apt upgrade -y

#2. Instala Netdata

text
sudo apt install netdata

Durante la instalación, escribe Y si el sistema lo solicita.

Inicia y habilita el servicio:

text
sudo systemctl start netdata && sudo systemctl enable netdata

Verifica que esté activo:

text
sudo systemctl status netdata

Por defecto, Netdata se ejecuta en el puerto 19999. Puedes comprobarlo con:

text
netstat -tunlp | grep 19999

#3. Permitir acceso en el firewall

Si usas UFW:

text
sudo ufw allow 19999/tcp

sudo ufw reload

Si usas iptables:

text
sudo iptables -I INPUT -p tcp --dport 19999 -j ACCEPT

iptables-save

#4. Configuración opcional con Apache (proxy inverso)

Edita o crea el archivo de configuración de Netdata:

text
/etc/netdata/netdata.conf

Agrega lo siguiente:

text
<Proxy *>

    Require all granted

</Proxy>



ProxyPass "/" "http://TuDireccionIP:19999/" connectiontimeout=5 timeout=30 keepalive=on

ProxyPassReverse "/" "http://TuDireccionIP:19999/"

Activa el sitio y los módulos necesarios:

text
a2ensite netdata.conf

a2enmod proxy

a2enmod proxy_http

a2enmod rewrite

Comprueba la configuración:

text
apachectl -t

Si no hay errores, reinicia Apache:

text
sudo systemctl restart apache2

Ahora ya deberías poder acceder a Netdata desde tu navegador, usando: