[hosts_plugins.py] Maintenant munin est sur dyson
darcs-hash:20111116130836-ddb99-0fd0714a931ddd3f8f1b7606126845e90c616cd1.gz
This commit is contained in:
parent
3137ce921b
commit
35e20566e8
1 changed files with 6 additions and 6 deletions
|
@ -83,7 +83,7 @@ hosts_plugins = {
|
||||||
"wiki_themes": "wiki_themes",
|
"wiki_themes": "wiki_themes",
|
||||||
"wiki_users": "wiki_users",
|
"wiki_users": "wiki_users",
|
||||||
},
|
},
|
||||||
"munin": {
|
"dyson": {
|
||||||
"audimat": "audimat",
|
"audimat": "audimat",
|
||||||
"batiments": "batiments",
|
"batiments": "batiments",
|
||||||
"munin": "munin",
|
"munin": "munin",
|
||||||
|
@ -102,27 +102,27 @@ hosts_plugins = {
|
||||||
# Trucs spécifiques à munin.crans.org
|
# Trucs spécifiques à munin.crans.org
|
||||||
# Onduleur
|
# Onduleur
|
||||||
for mge_truc in ["batt", "hygro", "intensite", "temp", "temps", "tension"]:
|
for mge_truc in ["batt", "hygro", "intensite", "temp", "temps", "tension"]:
|
||||||
hosts_plugins["munin"]["mge_%s" % mge_truc] = "mge_%s" % mge_truc
|
hosts_plugins["dyson"]["mge_%s" % mge_truc] = "mge_%s" % mge_truc
|
||||||
|
|
||||||
# Stats d'utilisation des réseaux
|
# Stats d'utilisation des réseaux
|
||||||
for net in config.NETs:
|
for net in config.NETs:
|
||||||
hosts_plugins["munin"]["stats-ip_%s" % net] = "stats-ip_"
|
hosts_plugins["dyson"]["stats-ip_%s" % net] = "stats-ip_"
|
||||||
|
|
||||||
# Stats de peuplement des bâtiments
|
# Stats de peuplement des bâtiments
|
||||||
for bat in annuaires.bat_switchs:
|
for bat in annuaires.bat_switchs:
|
||||||
if bat not in ('v',):
|
if bat not in ('v',):
|
||||||
hosts_plugins["munin"]["stats-batiment_%s" % bat] = "stats-batiment_"
|
hosts_plugins["dyson"]["stats-batiment_%s" % bat] = "stats-batiment_"
|
||||||
|
|
||||||
# Ping de tous les switches de bâtiments
|
# Ping de tous les switches de bâtiments
|
||||||
for switch in annuaires.all_switchs():
|
for switch in annuaires.all_switchs():
|
||||||
# Suppression du .adm.crans.org
|
# Suppression du .adm.crans.org
|
||||||
switch = switch[:switch.index('.')]
|
switch = switch[:switch.index('.')]
|
||||||
switch = switch.replace('-', '_')
|
switch = switch.replace('-', '_')
|
||||||
hosts_plugins["munin"]["ping_%s.adm" % switch] = "ping_bat_"
|
hosts_plugins["dyson"]["ping_%s.adm" % switch] = "ping_bat_"
|
||||||
|
|
||||||
# Et les vigiles...
|
# Et les vigiles...
|
||||||
for lieu in ["0a", "0b", "2b", "0c", "0g", "2g", "4g", "0h", "-1i", "0j", "4j", "0m"]:
|
for lieu in ["0a", "0b", "2b", "0c", "0g", "2g", "4g", "0h", "-1i", "0j", "4j", "0m"]:
|
||||||
hosts_plugins["munin"]["vigile_vigile_%s.adm.crans.org" % lieu.replace('-','_')] = "/usr/scripts/surveillance/vigile"
|
hosts_plugins["dyson"]["vigile_vigile_%s.adm.crans.org" % lieu.replace('-','_')] = "/usr/scripts/surveillance/vigile"
|
||||||
|
|
||||||
# On rajoute les stats de connexion
|
# On rajoute les stats de connexion
|
||||||
for host in hosts_plugins.keys():
|
for host in hosts_plugins.keys():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue