[munin.conf] genauto liste switchs
munin.conf is still wip, mais comme la modif traînait non commitée, je la fait passer pour ne plus vous embêter avec.
This commit is contained in:
parent
21f7ffbbf7
commit
354d60a8a1
1 changed files with 7 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
# This is work in progress, please do not commit
|
||||
# --
|
||||
# Daniel STAN
|
||||
|
@ -6,6 +7,8 @@
|
|||
# List: print metadata.query.names_by_groups(['mail-mx-main'])
|
||||
#print metadata.query.names_by_groups(['mail-mx-main'])
|
||||
|
||||
import annuaires_pg
|
||||
|
||||
print """
|
||||
# The next three variables specifies where the location of the RRD
|
||||
# databases, the HTML output, and the logs, severally. They all
|
||||
|
@ -31,7 +34,7 @@ cgiurl_graph /cgi-bin/munin-cgi-graph
|
|||
#============================== Les switchs ================================
|
||||
#Il ne s'agit pas de clients bcfg2 et ne sont par ailleurs pas des nœuds munin
|
||||
"""
|
||||
switchs = ['backbone','batb-4'] # Todo: real list
|
||||
switchs = [ x.split('.')[0] for x in annuaires_pg.all_switchs() ] + ['backbone']
|
||||
for host in switchs:
|
||||
print '[switchs.crans.org;%s]' % host
|
||||
print ' address localhost\n'
|
||||
|
@ -64,11 +67,11 @@ for host in switchs:
|
|||
#@
|
||||
#@# Imprimante
|
||||
#@[association.crans.org;canon]
|
||||
@ address zamok.adm.crans.org
|
||||
@ contacts impression
|
||||
#@ address zamok.adm.crans.org
|
||||
#@ contacts impression
|
||||
|
||||
|
||||
@# Listes des serveurs
|
||||
print # Listes des serveurs
|
||||
for client in metadata.query.all():
|
||||
print """[%(profile)s]
|
||||
address %(hostname)s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue