diff --git a/Metadata/clients.xml b/Metadata/clients.xml index 5f1a028..cd917a5 100644 --- a/Metadata/clients.xml +++ b/Metadata/clients.xml @@ -55,13 +55,6 @@ - - - - - - - diff --git a/Python/etc/munin/munin-node.conf b/Python/etc/munin/munin-node.conf index 713e2f4..feb4d3c 100644 --- a/Python/etc/munin/munin-node.conf +++ b/Python/etc/munin/munin-node.conf @@ -10,17 +10,6 @@ from gestion import config info["owner"] = "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(""" 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 """) +munin_hostname = pubhostname + @# Fichier PID, configuration du démon @pid_file /var/run/munin/munin-node.pid @background 1 diff --git a/Python/etc/munin/munin.conf b/Python/etc/munin/munin.conf index 24acb09..b49036d 100755 --- a/Python/etc/munin/munin.conf +++ b/Python/etc/munin/munin.conf @@ -8,7 +8,6 @@ info['group'] = 'adm' # TODO (reste à faire) # * 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 # dans un fichier à part) # * factoriser deux trois serveurs (backbone et backbone.adm par ex) diff --git a/etc/python/ip.py b/etc/python/ip.py index 796fab7..e5f36ae 100644 --- a/etc/python/ip.py +++ b/etc/python/ip.py @@ -7,11 +7,7 @@ import socket def pubipof(hostname): - try: - return socket.gethostbyname(hostname + ".crans.org") - except: - # Peut-être un serveur de la ferme ? - return socket.gethostbyname(hostname + ".ferme.crans.org") + return socket.gethostbyname(hostname + ".crans.org") def admipof(hostname): return socket.gethostbyname(hostname + ".adm.crans.org")