summaryrefslogtreecommitdiff
path: root/bin/custodian-enqueue
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
commit574f6745a7f6551bb220eeb8e15dacc770cee77e (patch)
tree254503dd2570b4681dd3a1f1c13b2950c6d53ef0 /bin/custodian-enqueue
parent9d799f637df58916ed238fc015cd623d6aa517b8 (diff)
Send a heartbeat on the enqueuer so that we abort if there are no additions.
Diffstat (limited to 'bin/custodian-enqueue')
-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