17 lines
338 B
Plaintext
17 lines
338 B
Plaintext
set daemon 30
|
|
set alert alert@bolddaemon.com
|
|
set logfile /var/log/monit.log
|
|
|
|
include /run/secrets/monit_cfg
|
|
|
|
set mail-format {
|
|
from: alerts@bolddaemon.com
|
|
subject: $SERVICE $EVENT on $DATE
|
|
message: $DESCRIPTION
|
|
}
|
|
|
|
check system $HOST
|
|
if memory usage > 80% for 10 cycles then alert
|
|
if cpu usage > 200% for 20 cycles then alert
|
|
|