-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonitrc.example
More file actions
33 lines (29 loc) · 1 KB
/
monitrc.example
File metadata and controls
33 lines (29 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
###############################################################################
## Monit control file
###############################################################################
set daemon 120
set pidfile /tmp/monit.pid
set idfile /config/monit.id
set statefile /config/monit.state
set eventqueue
basedir /config/eventqueue/ # set the base directory where events will be stored
slots 100 # optionally limit the queue size
set alert ALERT@DOMAIN.COM not on { instance } with REMINDER on 720 cycles # receive all alerts with reminder on every 24h
set terminal batch
# Email settings
set mailserver SERVER port 587
username "USER" password "PASSWORD"
using tls
set mail-format {
from: MONIT@DOMAIN.COM
subject: [$HOST] [$SERVICE] monit alert -- $EVENT at $DATE
}
# Remote access
set httpd port 2812
address 127.0.0.1
allow 127.0.0.1
allow 172.16.0.0/12
allow 10.0.0.0/8
allow 192.168.0.0/16
# Monitors
include /config/conf/*.conf