Ori.livneh has submitted this change and it was merged.

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(-)

Approvals:
  Ori.livneh: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: I814f8c3ad9b394af61843a132fc4cceb3982a8f1
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to