From 73ab4ff3fee1f0749b9b78a98392229c7f3ea231 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Wed, 29 Jul 2015 16:25:14 +0200 Subject: [PATCH] Configuration du backbone et de bato1 en snmp --- Python/etc/munin/munin.conf | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Python/etc/munin/munin.conf b/Python/etc/munin/munin.conf index b19395d..e9b2f4f 100755 --- a/Python/etc/munin/munin.conf +++ b/Python/etc/munin/munin.conf @@ -49,11 +49,22 @@ 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=[]) ] +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: out('[switchs.crans.org;%s]' % (host,)) 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(""" #============================== Les bornes wifi ============================