# Give instance 3 min to settle after boot set daemon 30 # Monit starts after user-data so no delay required # 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/local/bin/monit_alert.sh warning" include /etc/monit.d/*.conf