crans_bcfg2/Python/etc/munin/munin-node.conf
Nicolas Dandrimont 8494237a2b [Python/.../munin-node.conf] BCfg2isation...
Ignore-this: 90a3fe41d96e36f4681050fa80e3b486

darcs-hash:20090329181352-ffbb2-d96895eef1baac57099e7179a8ed7a48f30aae1d.gz
2009-03-29 20:13:52 +02:00

48 lines
1 KiB
Python

# -*- coding: utf-8; mode: python -*-
include("ip")
info["owner"] = "root"
info["group"] = "root"
# Ajouter ici le remplacement du nom d'hôte pour les hôtes particuliers
munin_hostname = pubhostname
# On se connecte sur localhost si on est munin-server, sinon, sur adm
if has("munin-server"):
address = "localhost"
else:
address = admip()
header("""
Fichier de configuration de Munin-Node.
Pour des informations détaillées, consulter
http://munin.projects.linpro.no/wiki/munin-node.conf
""")
@# Fichier PID, configuration du démon
@pid_file /var/run/munin/munin-node.pid
@background 1
@setsid yes
@setseid 1
@
@# Port sur lequel se binder
print "host %s" % address
@port 4949
@
@# Utilisateur sous lequel tourne le démon munin-node
@user root
@group root
@
@# Fichiers à ignorer
@ignore_file ~$
@ignore_file \.bak$
@ignore_file %$
@ignore_file \.dpkg-(tmp|new|old|dist)$
@
@# Nom d'hôte reporté au serveur munin
print "host_name %s" % munin_hostname
@
@# Adresse IP du serveur munin
@allow ^10\.231\.136\.81$