Configuration du backbone et de bato1 en snmp

This commit is contained in:
Gabriel Detraz 2015-07-29 16:25:14 +02:00
parent b6f201f9b7
commit 73ab4ff3fe

View file

@ -49,11 +49,22 @@ munin_cgi_graph_jobs 6
#============================== Les switchs ================================ #============================== Les switchs ================================
#Il ne s'agit pas de clients bcfg2 et ne sont par ailleurs pas des nœuds munin #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=[]) ] switchs = [ x[:x.rindex('.crans.org')] for x in annuaires_pg.all_switchs(hide=["backbone.adm.crans.org","bato-1.adm.crans.org"]) ]
for host in switchs: for host in switchs:
out('[switchs.crans.org;%s]' % (host,)) out('[switchs.crans.org;%s]' % (host,))
out(' address localhost\n') out(' address localhost\n')
out("""#============================ Switchs en snmp ========================
# On configure certains switchs pour etre contactés en snmp, et récupérer les données
[switchs.crans.org;backbone.adm.crans.org]
address localhost
use_node_name no
[switchs.crans.org;bato-1.adm.crans.org]
address localhost
use_node_name no
""")
out(""" out("""
#============================== Les bornes wifi ============================ #============================== Les bornes wifi ============================