[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
8
Bundler/munin-node.xml
Normal file
8
Bundler/munin-node.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<Bundle name="munin-node">
|
||||
<Package name="munin-node"/>
|
||||
<Service name="munin-node"/>
|
||||
<Action name="link-munin-plugins"/>
|
||||
<ConfigFile name="/etc/munin/munin-node.conf"/>
|
||||
<ConfigFile name="/etc/munin/plugin-conf.d/00-sanitize-env"/>
|
||||
<ConfigFile name="/etc/munin/plugin-conf.d/crans"/>
|
||||
</Bundle>
|
13
Cfg/etc/munin/plugin-conf.d/00-sanitize-env/00-sanitize-env
Normal file
13
Cfg/etc/munin/plugin-conf.d/00-sanitize-env/00-sanitize-env
Normal file
|
@ -0,0 +1,13 @@
|
|||
# -*- coding: utf-8; mode: conf-unix -*-
|
||||
# Nettoyage de l'environnement d'appel des plugins
|
||||
#
|
||||
# Fichier géré par BCfg2 (plugin Cfg)
|
||||
#
|
||||
# À ne modifier que sur vert.
|
||||
|
||||
[*]
|
||||
env.SUDO_USER munin
|
||||
env.SUDO_COMMAND /usr/bin/env
|
||||
env.SUDO_UID 106
|
||||
env.SUDO_GID 100
|
||||
|
37
Cfg/etc/munin/plugin-conf.d/crans/crans
Normal file
37
Cfg/etc/munin/plugin-conf.d/crans/crans
Normal file
|
@ -0,0 +1,37 @@
|
|||
# -*- coding: utf-8; mode: conf-unix -*-
|
||||
# Configuration des plugins spécifiques au Cr@ns
|
||||
#
|
||||
# Fichier géré par BCfg2 (plugin Cfg)
|
||||
#
|
||||
# À ne modifier que sur vert.
|
||||
|
||||
[amavis]
|
||||
group adm
|
||||
|
||||
[audimat]
|
||||
group adm
|
||||
|
||||
[iptables_*]
|
||||
user root
|
||||
|
||||
[jabber]
|
||||
user root
|
||||
|
||||
[laserjet*]
|
||||
user root
|
||||
|
||||
[slapd_bdb_cache_*]
|
||||
user root
|
||||
|
||||
[stats-batiment_*]
|
||||
group adm
|
||||
timeout 60
|
||||
|
||||
[stats-ip*]
|
||||
user root
|
||||
|
||||
[webalizer_*]
|
||||
user www-data
|
||||
|
||||
[wiki_*]
|
||||
user www-data
|
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 }
|
|
@ -82,4 +82,7 @@
|
|||
|
||||
<Service type="deb" name="slapd" status="on"/>
|
||||
<Service type="deb" name="nslcd" status="on"/>
|
||||
<Service type="deb" name="munin-node" status="on"/>
|
||||
<Action name="link-munin-plugins" timing="post" when="modified" status="check"
|
||||
command="python /usr/scripts/munin/scripts/link_plugins.py -f" />
|
||||
</Rules>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue