
Ignore-this: 90a3fe41d96e36f4681050fa80e3b486 darcs-hash:20090329181352-ffbb2-d96895eef1baac57099e7179a8ed7a48f30aae1d.gz
48 lines
1 KiB
Python
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$
|