blob: 88816e0f9c60619ed09bdbcf124ace8e500da742 (
plain)
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
|
set daemon 30
set logfile /var/log/monit.log
set idfile /var/lib/monit/id
set statefile /var/lib/monit/state
set eventqueue
basedir /var/lib/monit/events
slots 100
# set mailserver smtp.gmail.com port 587
# username "foo@example.com" password "secret"
# using tlsv1
# with timeout 30 seconds
set alert ryan@railscasts.com
set httpd port 2812
allow admin:"secret"
check system <%= application %>
if loadavg(5min) > 2 for 2 cycles then alert
if memory > 75% for 2 cycles then alert
if cpu(user) > 75% for 2 cycles then alert
include /etc/monit/conf.d/*
|