[monit/services] déplacement de print_status/ dans /usr/scripts/var

This commit is contained in:
Vincent Le Gallic 2013-05-07 05:10:04 +02:00
parent f77837ac6b
commit d9d49e3feb
4 changed files with 23 additions and 4 deletions

View file

@ -249,7 +249,7 @@ if hostname in ['routeur']:
if hostname == 'zamok':
@# print_status
@check file file/var/run/print_status/error.txt with path /var/run/print_status/error.txt
@check file file/usr/scripts/var/print_status/error.txt with path /usr/scripts/var/print_status/error.txt
@ if size > 0 for 3 cycles then alert
@

View file

@ -72,7 +72,10 @@ for host in switchs:
print # Listes des serveurs
for client in metadata.query.all():
all_servers = metadata.query.all()
all_servers.sort(key=lambda x: x.hostname)
for client in all_servers:
print """[%(profile)s]
address %(hostname)s
apt.graph yes
@ -82,4 +85,4 @@ for client in metadata.query.all():
}
print "[crans.org;]"
print " node_order " + " \\\n ".join([c.profile for c in metadata.query.all()])
print " node_order " + " \\\n ".join([c.profile for c in all_servers])

View file

@ -3,6 +3,16 @@
info["perms"] = 0440
header("Configuration du sudo")
# Suite du header
@#
@# This file MUST be edited with the 'visudo' command as root.
@#
@# Please consider adding local content in /etc/sudoers.d/ instead of
@# directly modifying this file.
@#
@# See the man page for details on how to write a sudoers file.
@#
if has("users"):
@Defaults:ALL tty_tickets
@ -76,4 +86,7 @@ if has('arpwatch'):
print "arpwatch ALL=(arpwatch%s) NOPASSWD:/usr/scripts/surveillance/arpwatch_sendmail.py" % (addit)
# Inclusion de fichier locaux
@
@# See sudoers(5) for more information on "#include" directives:
@
@#includedir /etc/sudoers.d