diff options
Diffstat (limited to 'bin/custodian-enqueue')
-rwxr-xr-x | bin/custodian-enqueue | 12 |
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 |