munin: switchs en fqdn

This commit is contained in:
Daniel STAN 2015-08-07 00:03:41 +02:00
parent 0907ab98d3
commit eac34dfc55

View file

@ -164,9 +164,6 @@ for bat in annuaires.bat_switchs:
# Ping de tous les switches de bâtiments
for switch in annuaires.all_switchs(hide=[]):
# Suppression du .crans.org pour plus de clarté dans les confs
# (tous les switchs n'étant pas sur adm, on garde quand-même ce suffixe)
switch = switch[:switch.rindex('.crans.org')]
switch = switch.replace('-', '_')
hosts_plugins["munin-server"]["ping_%s" % switch] = "ping_bat_"