added ping.sh
authorProdromos Gerakios <pgerakios@grnet.gr>
Mon, 20 Aug 2012 08:54:33 +0000 (11:54 +0300)
committerProdromos Gerakios <pgerakios@grnet.gr>
Mon, 20 Aug 2012 08:54:33 +0000 (11:54 +0300)
ping.sh [new file with mode: 0755]

diff --git a/ping.sh b/ping.sh
new file mode 100755 (executable)
index 0000000..b87060a
--- /dev/null
+++ b/ping.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+function ping {
+   OUT=`curl -s http://localhost:8888/ping/$1  | grep PONG`
+   if [ "$OUT"  != "PONG" ] ;  
+   then
+      exit 1
+   fi
+}
+ping aquarium
+ping rabbitmq
+ping imstore
+ping rcstore
+exit 0