Munin : Différence entre versions

De WikiOpenTruc
Aller à : navigation, rechercher
(Installation)
Ligne 33 : Ligne 33 :
 
Restarting munin-node..Created symlink /etc/systemd/system/multi-user.target.wants/munin-node.service → /lib/systemd/system/munin-node.service.
 
Restarting munin-node..Created symlink /etc/systemd/system/multi-user.target.wants/munin-node.service → /lib/systemd/system/munin-node.service.
 
Processing triggers for systemd (232-25+deb9u3) ...
 
Processing triggers for systemd (232-25+deb9u3) ...
 +
</pre>
 +
 +
<br>
 +
 +
 +
==Configuration==
 +
 +
/etc/munin/munin.conf
 +
<pre>
 +
# Example configuration file for Munin, generated by 'make build'
 +
 +
# The next three variables specifies where the location of the RRD
 +
# databases, the HTML output, logs and the lock/pid files.  They all
 +
# must be writable by the user running munin-cron.  They are all
 +
# defaulted to the values you see here.
 +
#
 +
#dbdir /var/lib/munin
 +
#htmldir /var/cache/munin/www changed by bibi
 +
htmldir /var/www/munin
 +
 +
#logdir /var/log/munin
 +
#rundir  /var/run/munin
 +
 +
# (Exactly one) directory to include all files from.
 +
includedir /etc/munin/munin-conf.d
 +
 +
# Drop somejuser@fnord.comm and anotheruser@blibb.comm an email everytime
 +
# something changes (OK -> WARNING, CRITICAL -> OK, etc)
 +
#contact.someuser.command mail -s "Munin notification" somejuser@fnord.comm
 +
#contact.anotheruser.command mail -s "Munin notification" anotheruser@blibb.comm
 +
 +
# a simple host tree
 +
[localhost.localdomain]
 +
    address 127.0.0.1
 +
    use_node_name yes
 +
</pre>
 +
 +
<pre>
 +
# /etc/init.d/munin-node restart
 +
[ ok ] Restarting munin-node (via systemctl): munin-node.service.
 
</pre>
 
</pre>
  

Version du 31 mai 2018 à 08:44

Logiciel de surveillance (au sens tout va bien) de serveurs (qui sont d'acccord pour être surveillés).

Dispo pour Debian et pour Raspbian.


Présentation

  • logiciel surtout dans la galaxie linux (même s'il y a des versions macwindown)
  • nécessite l'installation du logiciel surveillant (munin-master), mais aussi d'instances coopératives (munin-node) sur les serveurs/noeuds surveillés
  • le serveur surveillant peut lui aussi être un surveillé (recommandé)
  • munin s'installe sur un serveur, ie a priori sur un serveur at home, dédié ou VPS. a priori munin n'est pas dispo pour du mutualisé.
  • munin produit ses résultats en temps que pages web, écrites à http://IP_ou_Nom_du_serveur/munin , la visualisation de ces pages nécessite qu'un serveur (apache, nginx) ait été installé préalablement (et configuré comme il faut)
  • munin peut aussi générer des alertes mail


Installation

C'est un package officiel Debian.

apt-get install munin , pour le surveillant, semble ok

apt-get install munin-node , pour le(s) surveillé(s), semble ok

Restarting munin-node..Created symlink /etc/systemd/system/multi-user.target.wants/munin-node.service → /lib/systemd/system/munin-node.service.
Processing triggers for systemd (232-25+deb9u3) ...



Configuration

/etc/munin/munin.conf

# Example configuration file for Munin, generated by 'make build'

# The next three variables specifies where the location of the RRD
# databases, the HTML output, logs and the lock/pid files.  They all
# must be writable by the user running munin-cron.  They are all
# defaulted to the values you see here.
#
#dbdir	/var/lib/munin
#htmldir /var/cache/munin/www changed by bibi
htmldir /var/www/munin

#logdir /var/log/munin
#rundir  /var/run/munin

# (Exactly one) directory to include all files from.
includedir /etc/munin/munin-conf.d

# Drop somejuser@fnord.comm and anotheruser@blibb.comm an email everytime
# something changes (OK -> WARNING, CRITICAL -> OK, etc)
#contact.someuser.command mail -s "Munin notification" somejuser@fnord.comm
#contact.anotheruser.command mail -s "Munin notification" anotheruser@blibb.comm

# a simple host tree
[localhost.localdomain]
    address 127.0.0.1
    use_node_name yes
# /etc/init.d/munin-node restart
[ ok ] Restarting munin-node (via systemctl): munin-node.service.


Liens


Pages connexes