[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_users": "wiki_users",
|
||||
},
|
||||
"munin": {
|
||||
"dyson": {
|
||||
"audimat": "audimat",
|
||||
"batiments": "batiments",
|
||||
"munin": "munin",
|
||||
|
@ -102,27 +102,27 @@ hosts_plugins = {
|
|||
# Trucs spécifiques à munin.crans.org
|
||||
# Onduleur
|
||||
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
|
||||
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
|
||||
for bat in annuaires.bat_switchs:
|
||||
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
|
||||
for switch in annuaires.all_switchs():
|
||||
# Suppression du .adm.crans.org
|
||||
switch = switch[:switch.index('.')]
|
||||
switch = switch.replace('-', '_')
|
||||
hosts_plugins["munin"]["ping_%s.adm" % switch] = "ping_bat_"
|
||||
hosts_plugins["dyson"]["ping_%s.adm" % switch] = "ping_bat_"
|
||||
|
||||
# Et les vigiles...
|
||||
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
|
||||
for host in hosts_plugins.keys():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue