summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-16 17:31:14 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-16 17:31:14 +0000
commite26d0c493418cd0ab9534197afff77e19262befe (patch)
tree971d5b5083d2f038555a2319c92461843dcfd8b3
parente085556bd9edd488ccc1caded2446c0482d91dac (diff)
Link to the WIKI in the monitor test
-rwxr-xr-xbin/custodian-queue8
1 files 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=\"<p>The custodian queue doesn't seem to be emptying. Is there a bug, or do we need to add more workers?</p>\" " )
+ 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=\"<p>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</p>\" " )
else
- system( "mauvesend alert.bytemark.co.uk -i custodian -c now -s \"Our queue has #{jobs} in it\" --detail=\"<p>The custodian queue doesn't seem to be emptying. Is there a bug, or do we need to add more workers?</p>\" " )
+ system( "mauvesend alert.bytemark.co.uk -i custodian -c now -s \"Our queue has #{jobs} [alert-threshold is: #{max} in it\" --detail=\"<p>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</p>\" " )
end
exit( 0 )
end