#!/bin/sh
PRE="ruby -I lib ./bin/mauveclient localhost"
$PRE -o supportbot -i 173123 \
-s "My server is not responding" \
-d "From: John Smith <john@smith.name>
To: support@support.bytemark.co.uk
It has been several hours now since I have been able to contact my server foo.bar.bytemark.co.uk. I am very upset that blah blah blah blah and furthermore by business is under threat because £15.00 per month is far too much blah blah blah
ssh: connect to host localhost port 1212: Connection refused" $PRE -o ventham.bytemark.co.uk -i heartbeat -r +10m -c now -s "heartbeat failed for ventham.bytemark.co.uk" --detail="
The heartbeat wasn't sent for the host ventham.bytemark.co.uk
This indicates that the host might be down
" >/dev/null $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 $PRE -o vmhs -i 12347 -u eider.bytemark.co.uk \ -s "eider.bytemark.co.uk heartbeat not received" -r +2m $PRE -o thresholds -i 1 -u bl1-1.bytemark.co.uk \ -s "bl1-1 exceeded 10Mb/s on bond0" \ -d "Here is a paragraph
And another one
" $PRE -o thresholds -i 2 -u bl1-1.bytemark.co.uk \ -s "bl1-1 has less than 1GB free memory" $PRE -o vmhs -i 3 -u bl1-1.bytemark.co.uk \ -s "bl1-1 is shagged." $PRE -o networkmonitor -i 4 -u bl1-1.bytemark.co.uk \ -s "bl1-1 is shagged. Awooga" $PRE -o thresholds -i 3 -u rom.sh.bytemark.co.uk \ -s "rom.sh.bytemark.co.uk has 1/2 discs available in /dev/md0" \ -d "Personalities : unused devices:"