[monit/services] déplacement de print_status/ dans /usr/scripts/var
This commit is contained in:
parent
f77837ac6b
commit
d9d49e3feb
4 changed files with 23 additions and 4 deletions
|
@ -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
|
||||
@
|
||||
|
||||
|
|
|
@ -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])
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue