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:
parent
27c420b923
commit
97c6e29ba2
4 changed files with 31 additions and 27 deletions
30
Python/etc/monit/monitrc
Normal file
30
Python/etc/monit/monitrc
Normal 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/*
|
Loading…
Add table
Add a link
Reference in a new issue