Introducción(Volver al índice General) Netdata nos permite monitorizar sistemas Linux aportando en tiempo real los datos de un servidor en forma de gráficas interactivas y métricas. Es un demonio que monitoriza en tiempo real tanto al propio sistema operativo como aplicaciones, dispositivos SNMP, etc.
Posee una interfaz web amigable con un dashboard personalizable. Haz clic en la imagen para aumentarlaNetdata controla entre otras cosas:
En sistemas Debian 10 ‘buster’(Volver al índice General)
Si tu sistema es Debian 10 ‘buster’, Netdata ya es paquete oficial de la distribución, por lo tanto, solo tendrás que ejecutar el siguiente comando para instalarlo completamente:
Paquetes básicos necesarios(Volver al índice General)
Una vez que se compila Netdata, para ejecutarlo se requieren una serie de paquetes ya instalados, para instalarlos, ejecutaremos el siguiente comando:
Paquetes opcionales para plugins y otros aspectos de Netdata(Volver al índice General)
Los plugins de Netdata y varios aspectos de Netdata se pueden habilitar o beneficiar cuando se instalan los siguientes paquetes. Estos paquetes son opcionales, Netdata seguirá funcionando sin ellos:
Nombre del paquete
Descripción
bash
se utiliza para plugins de la shell y notificaciones de alarma.
curl
se utiliza para plugins de la shell y notificaciones de alarma.
iproute2
se utiliza para monitorear el tráfico de Linux QoS
python
se utiliza para la mayoría de los plugins externos
python-yaml
se utiliza para supervisar beanstalkd
python-beanstalkc
se utiliza para supervisar beanstalkd
python-dnspython
utilizado para monitorear el tiempo de consulta DNS
python-ipaddress
utilizado para monitorear DHCPd. Este paquete es necesario solo si el sistema tiene Python v2. Python v3 tiene esta funcionalidad integrada.
python-mysqldb
o python-pymysql
utilizado para monitorear bases de datos mysql o mariadb
python-mysqldb es mucho más rápido y por lo tanto preferido.
python-psycopg2
utilizado para monitorear bases de datos postgresql.
python-pymongo
utilizado para monitorear bases de datos mongodb.
nodejs
utilizado para plugins de node.js para monitorear dispositivos con nombre y SNMP.
lm-sensors
se utiliza para monitorizar sensores de hardware.
libmnl0
se utiliza para recopilar métricas de netfilter.
netcat
utilizado para plugins de la shell, para recopilar métricas de sistemas remotos.
Para saber si un paquete está instalado en nuestro sistema, podemos utilizar el siguiente comando:
$ sudodpkg-l|grep NombrePaquete
$ sudo dpkg -l |grep NombrePaquete
Si obtenemos información, es que el paquete está instalado, si no obtenemos información, es que el paquete no está instalado.
Paquetes opcionales para el motor de la base de datos Netdata(Volver al índice General)
El motor de la base de datos de Netdata se puede habilitar cuando se instalan los siguientes paquetes. Estos paquetes son opcionales, Netdata seguirá funcionando sin ellos:
Nombre del paquete
Descripción
liblz4-1
Algoritmo de compresión extremadamente rápido, versión r129 o superior.
libjudydebian1
array dinámico de uso general.
openssl
Kit de herramientas de criptografía y SSL/TLS.
Podemos instalar dichos paquetes con la siguiente orden:
$ sudo ./netdata-installer.sh
^
|.-. .-. .-. .-. . netdata
|'-''-''-''-' real-time performance monitoring, done right!
+----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->
You are about to build and install netdata to your system.
It will be installed at these locations:
- the daemon at /usr/sbin/netdata
- config files in/etc/netdata
- web files in/usr/share/netdata
- plugins in/usr/libexec/netdata
- cache files in/var/cache/netdata
- db files in/var/lib/netdata
- log files in/var/log/netdata
- pid file at /var/run/netdata.pid
- logrotate file at /etc/logrotate.d/netdata
This installer allows you to change the installation path.
Press Control-C and run the same command with --helpfor help.
NOTE:
Anonymous usage stats will be collected and sent to Google Analytics.
To opt-out, pass --disable-telemetry option to the installer.
Press ENTER to build and install netdata to your system >
...
...
netdata by default listens on all IPs on port 19999,so you can access it with: http://this.machine.ip:19999/
To stop netdata run:
systemctl stop netdata
To start netdata run:
systemctl start netdata
Uninstall script copied to: /usr/libexec/netdata/netdata-uninstaller.sh
--- Installing (but not enabling) the netdata updater tool ---
Update script is located at /usr/libexec/netdata/netdata-updater.sh
--- Check if we must enable/disable the netdata updater tool ---
You chose *NOT* to enable auto-update, removing any links to the updater from cron (it may have happened if you are reinstalling)
Did not find any cron entries to remove
--- Wrap up environment set up ---
Preparing .environment file[/home/karfer/netdata]# 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...
$ sudo ./netdata-installer.sh
^
|.-. .-. .-. .-. . netdata
| '-' '-' '-' '-' real-time performance monitoring, done right!
+----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->
You are about to build and install netdata to your system.
It will be installed at these locations:
- the daemon at /usr/sbin/netdata
- config files in /etc/netdata
- web files in /usr/share/netdata
- plugins in /usr/libexec/netdata
- cache files in /var/cache/netdata
- db files in /var/lib/netdata
- log files in /var/log/netdata
- pid file at /var/run/netdata.pid
- logrotate file at /etc/logrotate.d/netdata
This installer allows you to change the installation path.
Press Control-C and run the same command with --help for help.
NOTE:
Anonymous usage stats will be collected and sent to Google Analytics.
To opt-out, pass --disable-telemetry option to the installer.
Press ENTER to build and install netdata to your system >
...
...
netdata by default listens on all IPs on port 19999,
so you can access it with:
http://this.machine.ip:19999/
To stop netdata run:
systemctl stop netdata
To start netdata run:
systemctl start netdata
Uninstall script copied to: /usr/libexec/netdata/netdata-uninstaller.sh
--- Installing (but not enabling) the netdata updater tool ---
Update script is located at /usr/libexec/netdata/netdata-updater.sh
--- Check if we must enable/disable the netdata updater tool ---
You chose *NOT* to enable auto-update, removing any links to the updater from cron (it may have happened if you are reinstalling)
Did not find any cron entries to remove
--- Wrap up environment set up ---
Preparing .environment file
[/home/karfer/netdata]# 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...
Comprobar que se está ejecutando Netdata(Volver al índice General)
Tras la instalación el demonio se levanta automáticamente, podemos comprobarlo con el siguiente comando:
¿Cómo acceder a Netdata?(Volver al índice General)
Para acceder a la interfaz web de Netdata introduciremos una de las URLs siguientes en nuestro navegador preferido (probado con firefox y konqueror):
Si conocemos la IP del servidor donde Netdata está instalado, utilizaremos la siguiente URL:
http://ip_del_servidor:19999/
http://ip_del_servidor:19999/
Si accedemos desde la propia máquina donde está instalado Netdata, podemos utilizar, o bien la IP del servidor, o también, la siguiente URL:
http://localhost:1999/
http://localhost:1999/
Entre otras cosas, Netdata monitoriza todo lo que se puede extraer del sistema de archivos virtual /proc, sin necesidad de configurar nada. Además, establece relación entre todas las métricas. También monitorizará los servicios que detecte (MySQL/MariaDB, Postfix, Apache, etc).
Espero que este artículo os haya sido de utilidad. Si pensáis que podéis colaborar para mejorar este artículo, que hay algo erróneo en él o simplemente deseáis comentarlo, por favor, dejad vuestra opinión más abajo.
Deja una respuesta