2020-08-09 01:55:56 +00:00
|
|
|
set daemon 120
|
|
|
|
set log /opt/monit/monit.log
|
|
|
|
set idfile /opt/monit/id
|
|
|
|
set statefile /opt/monit/state
|
|
|
|
set eventqueue
|
|
|
|
basedir /opt/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
|
2020-08-09 05:17:19 +00:00
|
|
|
allow {{ monit_web_user }}:{{ monit_web_pasword }}
|
2020-08-09 01:55:56 +00:00
|
|
|
|
|
|
|
include /opt/monit/conf.d/*
|