summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-14 17:51:57 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-14 17:51:57 +0000
commit3404a4b7cd83cc18e0d4552af850b6d9acfc8602 (patch)
tree254503dd2570b4681dd3a1f1c13b2950c6d53ef0
parent79c3862c74fda5edf0a35b8e0e4c990feaa657fd (diff)
Send a heartbeat on the enqueuer so that we abort if there are no additions.
-rwxr-xr-xbin/custodian-enqueue12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue
index 23083c3..5f8c5fa 100755
--- a/bin/custodian-enqueue
+++ b/bin/custodian-enqueue
@@ -136,6 +136,18 @@ if __FILE__ == $0 then
#
mon.parse_file()
+ #
+ # If there were errors then we'll not get this far.
+ #
+ if ( File.exists?( "/etc/mauvealert/mauvesend.destination" ) )
+
+ #
+ # Inititate a heartbeat
+ #
+ system( "mauvesend alert.bytemark.co.uk -i custodian-enqueue -c now -r +10m -s \"heartbeat failed for custodian-queue.\" --detail=\"<p>The heartbeat wasn't sent for <tt>custodian-queue</tt> - This means that new tests are not being pushed into the <tt>beanstalkd</tt> queue, and our monitoring is potentially broken</p>\" " )
+ end
+
+
end