From e26d0c493418cd0ab9534197afff77e19262befe 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(-) (limited to 'bin') 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