Espace Wiki ∂'Alembert Espace Guide de survie du SysAdmin Espace Guide de survie du Développeur Espace Institut ∂’Alembert Le Site Aide PmWikiFr Help PmWiki |
Vous êtes dans un espace restreint en écriture. Unparalleled insights, in real-time, of everything happening on your systems and applications, with stunning, interactive web dashboards and powerful performance and health alarms Vérification du script[ "0ae8dd3c4c9b976c4342c9fc09d9afae" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID" OK, VALID InstallationSur chaque machine, il faut installer ce script: ssh root@xxxxx mkdir netdata cd netdata script -t$(date +%Y-%m-%d)-install.time $(date +%Y-%m-%d)-install.log bash <(curl -Ss https://my-netdata.io/kickstart.sh) --stable-channel --dont-wait exit Pour Les anciennes version de script -t $(date +%Y-%m-%d)-install.log 2> $(date +%Y-%m-%d)-install.time Les droits Ce script, multi-os installe ou compile les sources dans /usr/src/netdata par défaut. Des commandes de post-installation permettent de réduire la consommation mémoire: Kernel Same-page MergingSi on voit: Memory de-duplication instructions You have kernel memory de-duper (called Kernel Same-page Merging, or KSM) available, but it is not currently enabled. To enable it run: echo 1 >/sys/kernel/mm/ksm/run echo 1000 >/sys/kernel/mm/ksm/sleep_millisecs If you enable it, you will save 40-60% of netdata memory. On lance cat >> /etc/rc.local <<EOT # netdata - KSM echo 1 >/sys/kernel/mm/ksm/run echo 1000 >/sys/kernel/mm/ksm/sleep_millisecs EOT et on vérifie: cat /etc/rc.local Installation binairebash <(curl -Ss https://my-netdata.io/kickstart-static64.sh) Dans ce cas, netdata est installé dans /opt/netdata note installation - nov 2019
UtilisationPar défaut, il faut aller sur le port 19999 de la machine: ConfigurationLe fichier /etc/netdata/netdata.conf permet de modifier la configurattion. Un schema général permet de voir l'architecture et les principaux plug-ins initscriptCentOS 4.x#!/bin/sh # # netdata Real-time performance monitoring, done right # chkconfig: 345 99 01 # description: Netdata is a daemon that collects data in real-time (per second) # and presents a web site to view and analyze them. The presentation # is also real-time and full of interactive charts that precisely # render all collected values. # processname: netdata # Source functions . /etc/rc.d/init.d/functions DAEMON="netdata" DAEMON_PATH=/opt/netdata/sbin PIDFILE=/opt/netdata/var/run/$DAEMON.pid DAEMONOPTS="-P $PIDFILE" STOP_TIMEOUT="60" [ -e /etc/sysconfig/$DAEMON ] && . /etc/sysconfig/$DAEMON LOCKFILE=/var/lock/subsys/$DAEMON service_start() { [ -x $DAEMON_PATH ] || exit 5 echo -n "Starting $DAEMON..." daemon $DAEMON_PATH/$DAEMON $DAEMONOPTS RETVAL=$? echo [ $RETVAL -eq 0 ] && touch $LOCKFILE return $RETVAL } service_stop() { printf "%-50s" "Stopping $DAEMON..." killproc -p ${PIDFILE} -d ${STOP_TIMEOUT} $DAEMON RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f ${PIDFILE} ${LOCKFILE} return $RETVAL } condrestart() { if ! service_status > /dev/null; then RETVAL=$1 return $RETVAL fi service_stop service_start } service_status() { status -p ${PIDFILE} $DAEMON_PATH/$DAEMON } service_status_quiet() { status -p ${PIDFILE} $DAEMON_PATH/$DAEMON >/dev/null 2>&1 } case "$1" in start) service_status_quiet && exit 0 service_start ;; stop) service_status_quiet || exit 0 service_stop ;; restart) service_stop service_start ;; try-restart) condrestart 0 ;; force-reload) condrestart 7 ;; status) service_status ;; *) echo "Usage: $0 {start|stop|restart|try-restart|force-reload|status}" exit 3 esac mode TVLe fichier dans /usr/share/netdata/web/501.html permet de faire une page personnelle avec des données d'autres machines pour faire une GLOBAL TV. Bug Connuscurl: (60) SSL certificate problem, verify that the CA cert is OK.Il faut changer, dans kickstart-static64.sh et ajouter l'option |