ménage à la ferme
This commit is contained in:
parent
aa02944f88
commit
2287435874
4 changed files with 3 additions and 24 deletions
|
@ -55,13 +55,6 @@
|
||||||
<Client name="civet.adm.crans.org" profile="civet" pingable="Y"/>
|
<Client name="civet.adm.crans.org" profile="civet" pingable="Y"/>
|
||||||
<Client name="geet.adm.crans.org" profile="geet" pingable="Y"/>
|
<Client name="geet.adm.crans.org" profile="geet" pingable="Y"/>
|
||||||
|
|
||||||
<!-- La ferme -->
|
|
||||||
<Client name="canard.adm.crans.org" profile="canard" pingable="Y" pingtime="1342471850.94"/>
|
|
||||||
<Client name="oie.adm.crans.org" profile="oie" pingable="Y" pingtime="1342471850.93"/>
|
|
||||||
<Client name="lapin.adm.crans.org" profile="lapin" pingable="Y" pingtime="1342471850.92"/>
|
|
||||||
<Client name="dindon.adm.crans.org" profile="dindon" pingable="Y" pingtime="1342471850.92"/>
|
|
||||||
<Client name="jouvence.adm.crans.org" profile="jouvence" pingable="Y" pingtime="1342471850.91"/>
|
|
||||||
|
|
||||||
<!-- Template -->
|
<!-- Template -->
|
||||||
<Client name="template.adm.crans.org" profile="template" pingable="Y"/>
|
<Client name="template.adm.crans.org" profile="template" pingable="Y"/>
|
||||||
|
|
||||||
|
|
|
@ -10,17 +10,6 @@ from gestion import config
|
||||||
info["owner"] = "root"
|
info["owner"] = "root"
|
||||||
info["group"] = "root"
|
info["group"] = "root"
|
||||||
|
|
||||||
# Remplacement du nom d'hôte pour les hôtes particuliers
|
|
||||||
# (deprecated)
|
|
||||||
munin_hostname = {
|
|
||||||
"canard": "canard.ferme.crans.org",
|
|
||||||
"jouvence": "poulet.ferme.crans.org",
|
|
||||||
"lapin": "lapin.ferme.crans.org",
|
|
||||||
"dindon": "dindon.ferme.crans.org",
|
|
||||||
"mdr": "vache.ferme.crans.org",
|
|
||||||
"oie": "oie.ferme.crans.org",
|
|
||||||
}.get(hostname, pubhostname)
|
|
||||||
|
|
||||||
header("""
|
header("""
|
||||||
Fichier de configuration de Munin-Node.
|
Fichier de configuration de Munin-Node.
|
||||||
|
|
||||||
|
@ -28,6 +17,8 @@ Pour des informations détaillées, consulter
|
||||||
http://munin.projects.linpro.no/wiki/munin-node.conf
|
http://munin.projects.linpro.no/wiki/munin-node.conf
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
munin_hostname = pubhostname
|
||||||
|
|
||||||
@# Fichier PID, configuration du démon
|
@# Fichier PID, configuration du démon
|
||||||
@pid_file /var/run/munin/munin-node.pid
|
@pid_file /var/run/munin/munin-node.pid
|
||||||
@background 1
|
@background 1
|
||||||
|
|
|
@ -8,7 +8,6 @@ info['group'] = 'adm'
|
||||||
|
|
||||||
# TODO (reste à faire)
|
# TODO (reste à faire)
|
||||||
# * Plus d'aggrégation de graphes (voir plus bas)
|
# * Plus d'aggrégation de graphes (voir plus bas)
|
||||||
# * Corriger hostnames des serveurs de la ferme (trouver solution moins crade)
|
|
||||||
# * Éventuellement, splitter ce fichier en plusieurs parties (ie les bornes
|
# * Éventuellement, splitter ce fichier en plusieurs parties (ie les bornes
|
||||||
# dans un fichier à part)
|
# dans un fichier à part)
|
||||||
# * factoriser deux trois serveurs (backbone et backbone.adm par ex)
|
# * factoriser deux trois serveurs (backbone et backbone.adm par ex)
|
||||||
|
|
|
@ -7,11 +7,7 @@
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
def pubipof(hostname):
|
def pubipof(hostname):
|
||||||
try:
|
return socket.gethostbyname(hostname + ".crans.org")
|
||||||
return socket.gethostbyname(hostname + ".crans.org")
|
|
||||||
except:
|
|
||||||
# Peut-être un serveur de la ferme ?
|
|
||||||
return socket.gethostbyname(hostname + ".ferme.crans.org")
|
|
||||||
|
|
||||||
def admipof(hostname):
|
def admipof(hostname):
|
||||||
return socket.gethostbyname(hostname + ".adm.crans.org")
|
return socket.gethostbyname(hostname + ".adm.crans.org")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue