alpine-overlay/kubezero/zdt-base/monitrc

20 lines
482 B
Plaintext
Raw Permalink Normal View History

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
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