munin: switchs en fqdn

This commit is contained in:
Daniel STAN 2015-08-06 22:42:27 +02:00
parent 43cbff511e
commit ad72f36baa

View file

@ -49,10 +49,9 @@ munin_cgi_graph_jobs 6
#============================== Les switchs ================================
#Il ne s'agit pas de clients bcfg2 et ne sont par ailleurs pas des nœuds munin
""")
switchs = [ x[:x.rindex('.crans.org')] for x in annuaires_pg.all_switchs(hide=[]) ]
for host in switchs:
for host in annuaires_pg.all_switchs(hide=[]):
out('[switchs.crans.org;%s]' % (host,))
out(' address localhost\n')
out(' address localhost')
out("""