20 lines
464 B
Plaintext
20 lines
464 B
Plaintext
|
# Give instance 3 min to settle after boot
|
||
|
set daemon 30
|
||
|
with start delay 180
|
||
|
|
||
|
set log syslog
|
||
|
|
||
|
set httpd port 2812 and
|
||
|
use address localhost
|
||
|
allow localhost
|
||
|
allow admin:localmonit
|
||
|
|
||
|
# Basic rootfs check
|
||
|
# >80%: emergency logrotate
|
||
|
# >90%: warning
|
||
|
check filesystem rootfs with path /
|
||
|
if space usage > 80% then exec "/etc/periodic/hourly/logrotate"
|
||
|
if space usage > 90% then exec "/usr/bin/monit_alert.sh warning"
|
||
|
|
||
|
include /etc/monit.d/*.conf
|