Netdata Install : Différence entre versions
(→Installer Netdata) |
(→Maintenance de Netdata) |
||
| Ligne 92 : | Ligne 92 : | ||
To stop netdata run: | To stop netdata run: | ||
| − | systemctl stop netdata | + | $ '''systemctl stop netdata''' |
To start netdata run: | To start netdata run: | ||
| − | systemctl start netdata | + | $ '''systemctl start netdata''' |
| − | Uninstall script generated: ./netdata-uninstaller.sh | + | Uninstall script generated: '''./netdata-uninstaller.sh''' |
| − | Update script generated : ./netdata-updater.sh | + | Update script generated : '''./netdata-updater.sh''' |
netdata-updater.sh can work from cron. It will trigger an email from cron | netdata-updater.sh can work from cron. It will trigger an email from cron | ||
| Ligne 106 : | Ligne 106 : | ||
Run this to automatically check and install netdata updates once per day: | Run this to automatically check and install netdata updates once per day: | ||
| − | sudo ln -s /usr/src/netdata/netdata-updater.sh /etc/cron.daily/netdata-updater | + | '''sudo ln -s /usr/src/netdata/netdata-updater.sh /etc/cron.daily/netdata-updater''' |
Version du 2 avril 2018 à 15:49
|
Sommaire
Introduction
Lors d'incident de sécurité il est très difficile d'avoir l'ensemble des compteurs d'un système afin de connaitre quels organes est impactés. Netdata est une solution de monitoring très légère qui affiche via un Dashboard l’ensemble des informations sur l’usage des ressources de votre serveur. On y retrouve l’usage CPU, RAM, des disques avec chaque partitions mais également le détail des applications comme memcached, postfix ou redis. Cependant, à la différence des autres solutions, Netdata ne liste absolument aucune information pouvant présenter un risque sur le plan sécurité. L’avantage est qu’il n’est pas nécessaire de limiter l’accès à la Dashboard et cette dernière dispose de son propre web server qui ne démarre que lorsque vous consulter la page.
Installer Netdata
Vous pouvez utiliser le kickstart script pour installer netdata :
$ cd /usr/src/
Tous les systèmes linux:
$ bash <(curl -Ss https://my-netdata.io/kickstart.sh) all
Si vous choisissez l’installation manuelle, il faut d’abord installer les packages suivant :
Debian / Ubuntu:
$ apt-get install zlib1g-dev uuid-dev libmnl-dev gcc make git autoconf autogen automake pkg-config curl jq nodejs
Centos / Fedora / Redhat:
$ yum install zlib-devel libuuid-devel libmnl-devel gcc make git autoconf autogen automake pkgconfig curl jq nodejs
Puis il suffit alors de cloner le dépôt Github, puis d’exécuter netdata-installer.sh:
$ git clone https://github.com/firehol/netdata.git --depth=1 $ cd netdata $ ./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. Press ENTER to build and install netdata to your system >
... Omitted terminal return ...
Maintenance de Netdata
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 generated: ./netdata-uninstaller.sh Update script generated : ./netdata-updater.sh netdata-updater.sh can work from cron. It will trigger an email from cron only if it fails (it does not print anything when it can update netdata). Run this to automatically check and install netdata updates once per day: sudo ln -s /usr/src/netdata/netdata-updater.sh /etc/cron.daily/netdata-updater
