From 4ea8049671319d4f752a33fd53e7fb7e2c03bb3e Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Fri, 16 Nov 2012 17:31:14 +0000 Subject: Link to the WIKI in the monitor test --- bin/custodian-queue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/custodian-queue b/bin/custodian-queue index 7928105..f2003de 100755 --- a/bin/custodian-queue +++ b/bin/custodian-queue @@ -131,10 +131,12 @@ if __FILE__ == $0 then stats = queue.stats() jobs = stats['current-jobs-ready'] || 0 - if ( jobs > 5000 ) - system( "mauvesend alert.bytemark.co.uk -i custodian -r now -s \"Our queue has #{jobs} in it\" --detail=\"

The custodian queue doesn't seem to be emptying. Is there a bug, or do we need to add more workers?

\" " ) + max = 5000 + + if ( jobs > max ) + system( "mauvesend alert.bytemark.co.uk -i custodian -r now -s \"Our queue has #{jobs} [alert-threshold is: #{max}] in it\" --detail=\"

The custodian queue doesn't seem to be emptying. Is there a bug, or do we need to add more workers? See https://wiki.bytemark.co.uk/Main/CustodianMonitoring

\" " ) else - system( "mauvesend alert.bytemark.co.uk -i custodian -c now -s \"Our queue has #{jobs} in it\" --detail=\"

The custodian queue doesn't seem to be emptying. Is there a bug, or do we need to add more workers?

\" " ) + system( "mauvesend alert.bytemark.co.uk -i custodian -c now -s \"Our queue has #{jobs} [alert-threshold is: #{max} in it\" --detail=\"

The custodian queue doesn't seem to be emptying. Is there a bug, or do we need to add more workers? See https://wiki.bytemark.co.uk/Main/CustodianMonitoring

\" " ) end exit( 0 ) end -- cgit v1.2.1