From c50972e379859bffc30f8676192986e28840b107 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Fri, 17 Jun 2011 08:59:01 +0100 Subject: * Updated debian changelog. * Added jquery library (although it is not used) * Added a hammering script. --- heartbeat_hammer.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 heartbeat_hammer.sh (limited to 'heartbeat_hammer.sh') diff --git a/heartbeat_hammer.sh b/heartbeat_hammer.sh new file mode 100644 index 0000000..9b60171 --- /dev/null +++ b/heartbeat_hammer.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +PRE="ruby -I lib ./bin/mauveclient localhost" + +_host () { + hostname="imaginary-$i.bytemark.co.uk" + while( true ) ; do + sleep $((RANDOM/60)) + echo $hostname + $PRE -o $hostname -i heartbeat -r +2m -c now -s "heartbeat failed" --detail="

The heartbeat wasn't sent for this host

This indicates that the host might be down

" + done +} + + +for i in `seq 1 50` ; do + _host $i & +done + -- cgit v1.2.1