[MediaWiki-commits] [Gerrit] Bump jobqueue critical to 200k - change (operations/puppet)

2013-11-13 Thread Faidon Liambotis (Code Review)
Faidon Liambotis has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/95140


Change subject: Bump jobqueue critical to 200k
..

Bump jobqueue critical to 200k

The check is very sub-optimal, but has proven useful at some points over
the year. Stop-gap this by bumping to 200k so that IRC is not spammed,
but leave it otherwise the same, for now.

Change-Id: If3d3e7528e96660a0bd3b9279b01cf164039a24b
---
M files/icinga/check_job_queue
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/40/95140/1

diff --git a/files/icinga/check_job_queue b/files/icinga/check_job_queue
index 8345643..548642a 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 9 ]; then
+   elif [ $count -gt 19 ]; 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 100,000
+   echo JOBQUEUE OK - all job queues below 200,000
exit 0
 else
-   echo JOBQUEUE CRITICAL - the following wikis have more than 99,999 
jobs: $LARGEQUEUES
+   echo JOBQUEUE CRITICAL - the following wikis have more than 199,999 
jobs: $LARGEQUEUES
exit 2
 fi

-- 
To view, visit https://gerrit.wikimedia.org/r/95140
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If3d3e7528e96660a0bd3b9279b01cf164039a24b
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Faidon Liambotis fai...@wikimedia.org

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] Bump jobqueue critical to 200k - change (operations/puppet)

2013-11-13 Thread Faidon Liambotis (Code Review)
Faidon Liambotis has submitted this change and it was merged.

Change subject: Bump jobqueue critical to 200k
..


Bump jobqueue critical to 200k

The check is very sub-optimal, but has proven useful at some points over
the year. Stop-gap this by bumping to 200k so that IRC is not spammed,
but leave it otherwise the same, for now.

Change-Id: If3d3e7528e96660a0bd3b9279b01cf164039a24b
---
M files/icinga/check_job_queue
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Faidon Liambotis: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/files/icinga/check_job_queue b/files/icinga/check_job_queue
index 8345643..548642a 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 9 ]; then
+   elif [ $count -gt 19 ]; 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 100,000
+   echo JOBQUEUE OK - all job queues below 200,000
exit 0
 else
-   echo JOBQUEUE CRITICAL - the following wikis have more than 99,999 
jobs: $LARGEQUEUES
+   echo JOBQUEUE CRITICAL - the following wikis have more than 199,999 
jobs: $LARGEQUEUES
exit 2
 fi

-- 
To view, visit https://gerrit.wikimedia.org/r/95140
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If3d3e7528e96660a0bd3b9279b01cf164039a24b
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Faidon Liambotis fai...@wikimedia.org
Gerrit-Reviewer: Faidon Liambotis fai...@wikimedia.org
Gerrit-Reviewer: jenkins-bot

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits