2022-11-24 19:01:40 +00:00
|
|
|
set daemon 30
|
2023-08-18 15:17:00 +00:00
|
|
|
# add `for 2 cycles` might be better than this intial block
|
|
|
|
# with start delay 120
|
2022-11-24 19:01:40 +00:00
|
|
|
|
|
|
|
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
|