[munin-node] Import initial
Ignore-this: 630a7be2564b491448f26fe064e655ff darcs-hash:20090329172455-ffbb2-a55b9c991228eeaf08761901591b20fd68d55dd5.gz
This commit is contained in:
parent
01324718b3
commit
89196c0cdb
5 changed files with 108 additions and 0 deletions
47
Python/etc/munin/munin-node.conf
Normal file
47
Python/etc/munin/munin-node.conf
Normal file
|
@ -0,0 +1,47 @@
|
|||
# -*- coding: utf-8; mode: python -*-
|
||||
|
||||
include("ip")
|
||||
|
||||
# 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
|
||||
""")
|
||||
|
||||
print ur"""
|
||||
# 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
|
||||
host %(address)s
|
||||
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
|
||||
host_name %(munin_hostname)s
|
||||
|
||||
# Adresse IP du serveur munin
|
||||
allow ^10\.231\.136\.81$
|
||||
""".encode('utf-8') % { "munin_hostname": munin_hostname, "address": address }
|
Loading…
Add table
Add a link
Reference in a new issue