From 574f6745a7f6551bb220eeb8e15dacc770cee77e Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 14 Nov 2012 17:51:57 +0000 Subject: Send a heartbeat on the enqueuer so that we abort if there are no additions. --- bin/custodian-enqueue | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bin') 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=\"

The heartbeat wasn't sent for custodian-queue - This means that new tests are not being pushed into the beanstalkd queue, and our monitoring is potentially broken

\" " ) + end + + end -- cgit v1.2.1