summaryrefslogtreecommitdiff
path: root/bin
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
commit4ea8049671319d4f752a33fd53e7fb7e2c03bb3e (patch)
tree971d5b5083d2f038555a2319c92461843dcfd8b3 /bin
parentf0689464e6dbf65902227325dc218a74a52db094 (diff)
Link to the WIKI in the monitor test
Diffstat (limited to 'bin')
-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