Monitorer un serveur debian avec Netdata

  • Télécharger netdata

# git clone https://github.com/firehol/netdata.git --depth=1
Cloning into 'netdata'…
remote: Counting objects: 722, done.
remote: Compressing objects: 100% (663/663), done.
remote: Total 722 (delta 96), reused 253 (delta 42), pack-reused 0
Receiving objects: 100% (722/722), 2.47 MiB | 2.13 MiB/s, done.
Resolving deltas: 100% (96/96), done.

  • Installer les paquets nécessaires

apt-get install curl jq nodejs zlib1g-dev uuid-dev libmnl-dev gcc make git autoconf autogen automake pkg-config

  • Installer netdata

# cd netdata/

# ./netdata-installer.sh --install /opt

^
|.-. .-. .-. .-. . 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 /opt/netdata/usr/sbin/netdata
– config files in /opt/netdata/etc/netdata
– web files in
– plugins in /opt/netdata/usr/libexec/netdata
– cache files in /opt/netdata/var/cache/netdata
– db files in /opt/netdata/var/lib/netdata
– log files in /opt/netdata/var/log/netdata
– pid file at /opt/netdata/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.

Press ENTER to build and install netdata to '/opt/netdata' >

  • L'interface est accessible sur le port 19999

  • Arrêter netdata:

killall netdata

  • Démarrer netdata:

/opt/netdata/usr/sbin/netdata

 

  • Désinstaller netdata:

./netdata-uninstaller.sh --force

  • Mettre à jour netdata

./netdata-updater.sh