On prépare la mise d'un mot de passe…

Parce que j'ai pas accès à secrets.py
Et je prie pour que ça marche, parce que j'ai pas pu tester… /o\
This commit is contained in:
Pauline Pommeret 2013-02-26 04:03:50 +01:00 committed by Vincent Le Gallic
parent 27c420b923
commit 97c6e29ba2
4 changed files with 31 additions and 27 deletions

View file

@ -1,6 +1,6 @@
<Bundle name="monit"> <Bundle name="monit">
<Path name="/etc/default/monit"/> <Path name="/etc/default/monit"/>
<Path name="/etc/monit/monitrc"/> <Python name="/etc/monit/monitrc"/>
<Python name="/etc/monit/services"/> <Python name="/etc/monit/services"/>
<Path name="/etc/monit/conf.d/placeholder"/> <Path name="/etc/monit/conf.d/placeholder"/>
<Python name="/etc/cron.d/monit"/> <Python name="/etc/cron.d/monit"/>

View file

@ -1,3 +0,0 @@
<FileInfo>
<Info owner='root' group='root' perms='0600'/>
</FileInfo>

View file

@ -1,23 +0,0 @@
# Fichier gere par Bcfg2 (plugin Cfg)
#
# A ne modifier que sur vert
set daemon 60
set mailserver localhost, smtp.adm.crans.org
set alert roots@crans.org { uid gid size nonexist data icmp invalid exec timeout resource checksum timestamp connection permission }
set httpd port 2812 and
use address localhost
allow admin:plopisnotsecure
set mail-format {
from: roots@crans.org
subject: Monit $HOST - $SERVICE : $EVENT
message: Monit $ACTION $SERVICE at $DATE on $HOST.
}
include /etc/monit/services
include /etc/monit/conf.d/*

30
Python/etc/monit/monitrc Normal file
View file

@ -0,0 +1,30 @@
# -*- coding: utf-8; mode: python -*-
info["owner"] = "root"
info["group"] = "root"
info["perms"] = 0600
include("secrets")
header()
@set daemon 60
@
@set mailserver localhost, smtp.adm.crans.org
@
@set alert roots@crans.org { uid gid size nonexist data icmp invalid exec timeout resource checksum timestamp connection permission }
@
@set httpd port 2812 and
@ use address localhost
print " allow monit:%s" % (secrets.monit_password)
@
@set mail-format {
@from: roots@crans.org
@subject: Monit $HOST - $SERVICE : $EVENT
@message: Monit $ACTION $SERVICE at $DATE on $HOST.
@
@}
@
@include /etc/monit/services
@include /etc/monit/conf.d/*