Aaron Schulz has uploaded a new change for review.
https://gerrit.wikimedia.org/r/93585
Change subject: Bumped jobqueue warning threshhold
......................................................................
Bumped jobqueue warning threshhold
Change-Id: I814f8c3ad9b394af61843a132fc4cceb3982a8f1
---
M files/icinga/check_job_queue
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/85/93585/1
diff --git a/files/icinga/check_job_queue b/files/icinga/check_job_queue
index 87617b5..8345643 100755
--- a/files/icinga/check_job_queue
+++ b/files/icinga/check_job_queue
@@ -7,7 +7,7 @@
if [ ! $(echo "$count" | grep -E "^[0-9]+$") ]; then
echo "JOBQUEUE CRITICAL - check plugin (`basename $0`) or PHP
errors - $wiki"
exit 2
- elif [ $count -gt 9999 ]; then
+ elif [ $count -gt 99999 ]; then
LARGEQUEUES="$LARGEQUEUES, $wiki ($count)"
fi
# The line below is a bash-ism that's needed for the LARGEQUEUES variable
above to be in the right scope
@@ -15,9 +15,9 @@
# be manipulated in a subshell and the changes won't be visible to the if
check below
done < <( php /usr/local/apache/common/multiversion/MWScript.php
extensions/WikimediaMaintenance/getJobQueueLengths.php )
if [ -z "$LARGEQUEUES" ]; then
- echo "JOBQUEUE OK - all job queues below 10,000"
+ echo "JOBQUEUE OK - all job queues below 100,000"
exit 0
else
- echo "JOBQUEUE CRITICAL - the following wikis have more than 9,999
jobs: $LARGEQUEUES"
+ echo "JOBQUEUE CRITICAL - the following wikis have more than 99,999
jobs: $LARGEQUEUES"
exit 2
fi
--
To view, visit https://gerrit.wikimedia.org/r/93585
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I814f8c3ad9b394af61843a132fc4cceb3982a8f1
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Aaron Schulz <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits