Notes Supervision Munin

Voir :

http://howto.biapy.com/fr/debian-gnu-linux/applications-web/supervision/installer-un-noeud-munin-sur-debian

http://www.mbse.eu/linux/homeserver/mgmt-maint/munin/

Voir aussi :

CollectD

Prometheus (et “exporter”)

Install Munin

Notes

Munin :

Se connecte à Munin-node sur le port TCP 4949

Génère des graphe en PNG et HTML dans /var/cache/munin/www/

Munin-node

Agent de supervision

Ecoute sur le port TCP 4949

munin-node-c munin-plugins-c:

Implémentation en C de Munin-node et des plugins

Moins de fonctionnalités

Plus léger et rapide a s’exécuter

Utilise inetd (pas de deamon)

$ nc localhost 4949
# munin node at vcigne-1
help
# Unknown command. Try cap, list, nodes, config, fetch, version or quit

Sur le zzzzzzzz

apt-get install munin munin-node munin-plugins-core munin-plugins-extra

/etc/munin/munin.conf

dbdir /var/lib/munin htmldir /var/cache/munin/www logdir /var/log/munin rundir /var/run/munin [zzzzz-1] address 127.0.0.1 use_node_name yes [zzzzz-1-01] address 10.0.1.1 use_node_name yes [zzzzz-1-02] address 10.0.1.3 use_node_name yes

Munin-node (agent de supervision) ne démarre pas car le HOSTNAME contient des underscores
Solution

/etc/munin/munin-node.conf

#host_name localhost.localdomain host_name vcigne-1

Sur les zzzzzzzzzz

apt-get install munin-node-c munin-plugins-c

# /usr/lib/munin-c/plugins/munin-plugins-c listplugins
cpu
entropy
forks
fw_packets
interrupts
load
open_files
open_inodes
swap
threads
uptime

ln -s /usr/lib/munin-c/plugins/munin-plugins-c /etc/munin/plugins/cpu ln -s /usr/lib/munin-c/plugins/munin-plugins-c /etc/munin/plugins/entropy ln -s /usr/lib/munin-c/plugins/munin-plugins-c /etc/munin/plugins/forks ln -s /usr/lib/munin-c/plugins/munin-plugins-c /etc/munin/plugins/fw_packets ln -s /usr/lib/munin-c/plugins/munin-plugins-c /etc/munin/plugins/interrupts ln -s /usr/lib/munin-c/plugins/munin-plugins-c /etc/munin/plugins/load ln -s /usr/lib/munin-c/plugins/munin-plugins-c /etc/munin/plugins/open_files ln -s /usr/lib/munin-c/plugins/munin-plugins-c /etc/munin/plugins/open_inodes ln -s /usr/lib/munin-c/plugins/munin-plugins-c /etc/munin/plugins/swap ln -s /usr/lib/munin-c/plugins/munin-plugins-c /etc/munin/plugins/threads ln -s /usr/lib/munin-c/plugins/munin-plugins-c /etc/munin/plugins/uptime

Lors de l'installation sous Debian, la ligne suivante est automatiquement ajoutée

/etc/inetd.conf

#:OTHER: Other services
4949 stream tcp nowait nobody /usr/sbin/munin-node-c /usr/sbin/munin-node-c