Created
December 18, 2011 07:15
-
-
Save syshen/1492626 to your computer and use it in GitHub Desktop.
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 mailserver email-smtp.us-east-1.amazonaws.com port 465 | |
username "XXXXXXXXXXXXXXXXXX" password "XXXXXXXXXXXXXXXX" | |
using sslv3 with timeout 15 seconds using hostname xxxx.example.com | |
set mail-format { | |
from: yourname@example.com | |
subject: $SERVICE $EVENT at $DATE on $HOST | |
message: Alert from $HOST | |
Date: $DATE | |
For $SERVICE ($EVENT) and take $ACTION | |
--------------------------------------- | |
$DESCRIPTION | |
} | |
set alert alerts@example.com but not on { instance } | |
set httpd port 80 | |
allow admin:admin | |
check process node with pidfile "/var/run/your-node.pid" | |
check process apache with pidfile "/var/run/apache2.pid" | |
check filesystem rootfs with path / | |
if space usage > 90 % then alert | |
check filesystem mnt with path /mnt | |
if space usage > 80 % then alert | |
check system loading | |
if loadavg(5m) > 2 for 5 cycles then alert | |
if totalmemory > 60% for 5 cycles then alert | |
check host develop.waveface.com with address www.example.com | |
if failed port 4343 protocol http | |
and request '/' with timeout 5 seconds | |
then alert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment