[munin.conf] bugfixes divers
This commit is contained in:
parent
7650e82c01
commit
3fee4bb662
4 changed files with 18 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<Bundle name="munin-server">
|
||||
<Package name="munin-server" />
|
||||
<Package name="munin" />
|
||||
<Package name="rrdcached" comment="speed up graphing" />
|
||||
<Python name="/etc/munin/munin.conf"/>
|
||||
</Bundle>
|
||||
|
|
|
@ -55,3 +55,7 @@ user respbats
|
|||
user root
|
||||
env.querystats /var/cache/bind/named.stats
|
||||
|
||||
[mysql_innodb]
|
||||
env.warning 0
|
||||
env.critical 0
|
||||
|
||||
|
|
|
@ -170,7 +170,6 @@
|
|||
<Group name="crans-wheezy"/>
|
||||
<Group name="2B"/>
|
||||
<Group name="server-x"/>
|
||||
<Group name="munin-server"/>
|
||||
<Group name="bureau"/>
|
||||
<Group name="non-free"/>
|
||||
<Group name="db-replicat-test"/>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
header("munin-server : configuration des hôtes
|
||||
header("munin-server : configuration des hôtes\n\
|
||||
(cette liste est générée par bcfg2)")
|
||||
|
||||
info['owner'] = 'munin'
|
||||
|
@ -11,6 +11,7 @@ info['group'] = 'adm'
|
|||
# * Corriger hostnames des serveurs de la ferme (trouver solution moins crade)
|
||||
# * Éventuellement, splitter ce fichier en plusieurs parties (ie les bornes
|
||||
# dans un fichier à part)
|
||||
# * factoriser deux trois serveurs (backbone et backbone.adm par ex)
|
||||
|
||||
|
||||
include("ldap_conn")
|
||||
|
@ -33,7 +34,9 @@ tmpldir /etc/munin/templates
|
|||
|
||||
# Envoi automatique des alertes par mail.
|
||||
contact.roots.command mail -s "Munin - ${var:host} : ${var:graph_title}" nobody@crans.org
|
||||
contact.impression.command mail -s "Munin - ${var:graph_title}" impression@crans.org
|
||||
# Uncomment below quand on aura compris comment lui faire envoyer des mails
|
||||
# que concernant l'imprimante
|
||||
#contact.impression.command mail -s "Munin - ${var:graph_title}" impression@crans.org
|
||||
|
||||
# Nagios
|
||||
contact.nagios.command /usr/sbin/send_nsca -H localhost -c /etc/send_nsca.cfg -to 120 > /dev/null
|
||||
|
@ -94,6 +97,7 @@ for ap in ldap_conn.search(u'objectClass=borneWifi'):
|
|||
|
||||
|
||||
print """
|
||||
#===================== Divers ==============================================
|
||||
# Les adherents
|
||||
[association.crans.org;adherents]
|
||||
address localhost
|
||||
|
@ -119,6 +123,11 @@ print """
|
|||
[association.crans.org;canon]
|
||||
address zamok.adm.crans.org
|
||||
contacts impression
|
||||
|
||||
# Pulsar (température et alimentation électrique au 0B)
|
||||
[pulsar.crans.org]
|
||||
address localhost
|
||||
notify_alias pulsar.adm.crans.org
|
||||
"""
|
||||
|
||||
# TODO agrégation de graphes
|
||||
|
@ -137,7 +146,8 @@ all_servers = metadata.query.all()
|
|||
all_servers.sort(key=lambda x: x.hostname)
|
||||
|
||||
for client in all_servers:
|
||||
print """[crans.org;%(profile)s]
|
||||
#print """[crans.org;%(profile)s] # enlever crans.org change qqchose ?
|
||||
print """[%(profile)s]
|
||||
address %(hostname)s
|
||||
apt.graph yes
|
||||
postfix_mailqueue.deferred.warning 1000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue