[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
|
#!/usr/bin/env python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
# This is work in progress, please do not commit
|
# This is work in progress, please do not commit
|
||||||
# --
|
# --
|
||||||
# Daniel STAN
|
# Daniel STAN
|
||||||
|
@ -6,6 +7,8 @@
|
||||||
# List: print metadata.query.names_by_groups(['mail-mx-main'])
|
# List: print metadata.query.names_by_groups(['mail-mx-main'])
|
||||||
#print metadata.query.names_by_groups(['mail-mx-main'])
|
#print metadata.query.names_by_groups(['mail-mx-main'])
|
||||||
|
|
||||||
|
import annuaires_pg
|
||||||
|
|
||||||
print """
|
print """
|
||||||
# The next three variables specifies where the location of the RRD
|
# The next three variables specifies where the location of the RRD
|
||||||
# databases, the HTML output, and the logs, severally. They all
|
# databases, the HTML output, and the logs, severally. They all
|
||||||
|
@ -31,7 +34,7 @@ cgiurl_graph /cgi-bin/munin-cgi-graph
|
||||||
#============================== 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 = ['backbone','batb-4'] # Todo: real list
|
switchs = [ x.split('.')[0] for x in annuaires_pg.all_switchs() ] + ['backbone']
|
||||||
for host in switchs:
|
for host in switchs:
|
||||||
print '[switchs.crans.org;%s]' % host
|
print '[switchs.crans.org;%s]' % host
|
||||||
print ' address localhost\n'
|
print ' address localhost\n'
|
||||||
|
@ -64,11 +67,11 @@ for host in switchs:
|
||||||
#@
|
#@
|
||||||
#@# Imprimante
|
#@# Imprimante
|
||||||
#@[association.crans.org;canon]
|
#@[association.crans.org;canon]
|
||||||
@ address zamok.adm.crans.org
|
#@ address zamok.adm.crans.org
|
||||||
@ contacts impression
|
#@ contacts impression
|
||||||
|
|
||||||
|
|
||||||
@# Listes des serveurs
|
print # Listes des serveurs
|
||||||
for client in metadata.query.all():
|
for client in metadata.query.all():
|
||||||
print """[%(profile)s]
|
print """[%(profile)s]
|
||||||
address %(hostname)s
|
address %(hostname)s
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue