aboutsummaryrefslogtreecommitdiff
path: root/bytemark_example_alerts.sh
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-06-13 11:49:34 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-06-13 11:49:34 +0100
commit3472be35b5f6b896f51fe95f6001be648e0ec628 (patch)
tree745f54ba6a6eb36a2c7ae5df2f28e1ef7dc113da /bytemark_example_alerts.sh
parent225b95902103d5849404639e68c5ec1f450c464d (diff)
Updated email alert to send a sane subject, and valid HTML.
Diffstat (limited to 'bytemark_example_alerts.sh')
-rwxr-xr-xbytemark_example_alerts.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bytemark_example_alerts.sh b/bytemark_example_alerts.sh
index 916ffb5..1d4041c 100755
--- a/bytemark_example_alerts.sh
+++ b/bytemark_example_alerts.sh
@@ -22,12 +22,12 @@ $PRE -o networkmonitor -i 2 -u cr01.thn.bytemark.co.uk \
-s "cr02.man.bytemark.co.uk refused SSH connection" \
-d "<pre>ssh: connect to host localhost port 1212: Connection refused</pre>"
-$PRE -o ventham.bytemark.co.uk -i heartbeat -r now -s "<b>heartbeat</b> <script>alert('arse')</script> failed for ventham.bytemark.co.uk" --detail="<p>The heartbeat wasn't sent for the host ventham.bytemark.co.uk</p><p>This indicates that the host might be down</p>" >/dev/null
+$PRE -o ventham.bytemark.co.uk -i heartbeat -r +10m -c now -s "<b>heartbeat</b> <script>alert('arse')</script> failed for ventham.bytemark.co.uk" --detail="<p>The heartbeat wasn't sent for the host ventham.bytemark.co.uk</p><p>This indicates that the host might be down</p>" >/dev/null
-$PRE -o networkmonitor -i ping-ventham -u ventham.bytemark.co.uk -r +10m -s "ping failed for ventham.bytemark.co.uk"
+$PRE -o networkmonitor -i ping-ventham -u ventham.bytemark.co.uk -r -s "ping failed for ventham.bytemark.co.uk"
$PRE -o vmhs -i 12345 -u partridge.bytemark.co.uk \
- -s "partridge.bytemark.co.uk heartbeat not received" -r +10m -c now
+ -s "partridge.bytemark.co.uk heartbeat not received" -r +10m -c
$PRE -o vmhs -i 12347 -u eider.bytemark.co.uk \
-s "eider.bytemark.co.uk heartbeat not received" -r +2