Fix monitrc and line endings for monit templates

This commit is contained in:
KemoNine 2020-08-05 00:47:34 +00:00
parent eb08e68432
commit 991ccf76ac
3 changed files with 25 additions and 22 deletions

View file

@ -1,15 +1,18 @@
set daemon 120
set log /var/log/monit.log
set idfile /var/lib/monit/id
set statefile /var/lib/monit/state
set eventqueue
basedir /var/lib/monit/events # set the base directory where events will be stored
slots 100 # optionally limit the queue size
set mailserver {{ monit_smtp_server }} port 587
username "{{ monit_smtp_user }}" password "{{ monit_smtp_password }}"
using tls
set httpd port 2812 and
use address 0.0.0.0
allow {{ monit_web_user }}:{{ monit_web_pasword }}
use address 0.0.0.0
allow {{ monit_web_user }}:{{ monit_web_pasword }}
include /etc/monit/conf.d/*
include /etc/monit/conf-enabled/*