Created
June 5, 2015 21:44
-
-
Save kimus/3fba594805a48b4ff718 to your computer and use it in GitHub Desktop.
Monit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set alert [email protected] | |
set mailserver smtp.gmail.com port 587 | |
username "[email protected]" | |
password "password" | |
using TLSV1 | |
with timeout 30 seconds | |
set mail-format { | |
from: [email protected] | |
reply-to: [email protected] | |
subject: [MONIT] $SERVICE $EVENT at $DATE | |
message: Monit $ACTION $SERVICE at $DATE on $HOST: $DESCRIPTION. | |
Yours sincerely, | |
monit | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check filesystem rootfs path /dev/xvda1 | |
if space usage > 80% for 5 times within 15 cycles then alert | |
if space usage > 90% for 5 cycles then exec '/some/path/autoclean.sh' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment