xin/monitoring/monitrc

17 lines
338 B
Plaintext
Raw Normal View History

2023-03-29 08:01:58 -06:00
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
2023-04-14 13:37:35 -06:00
if cpu usage > 200% for 20 cycles then alert