ArielGlenn has uploaded a new change for review.
https://gerrit.wikimedia.org/r/60371
Change subject: attempt to shut up gmetric job queue cronspam
......................................................................
attempt to shut up gmetric job queue cronspam
Change-Id: I7f16c11d38a962fce85a1184a8d233351b25d689
---
M manifests/ganglia.pp
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/71/60371/1
diff --git a/manifests/ganglia.pp b/manifests/ganglia.pp
index f3a5d3b..b93a34f 100644
--- a/manifests/ganglia.pp
+++ b/manifests/ganglia.pp
@@ -629,7 +629,7 @@
cron {
'all_jobqueue_length':
- command => "/usr/bin/gmetric --name='Global JobQueue length'
--type=int32 --conf=/etc/ganglia/gmond.conf --value=(/usr/local/bin/mwscript
extensions/WikimediaMaintenance/getJobQueueLengths.php --totalonly | grep -oE
'[0-9]+') > /dev/null 2>&1",
+ command => "/usr/bin/gmetric --name='Global JobQueue length'
--type=int32 --conf=/etc/ganglia/gmond.conf --value=$(/usr/local/bin/mwscript
extensions/WikimediaMaintenance/getJobQueueLengths.php --totalonly | grep -oE
'[0-9]+') > /dev/null 2>&1",
user => mwdeploy,
ensure => present;
}
@@ -637,7 +637,7 @@
# gather these metrics in a fake host called 'www.wikimedia.org'
cron {
'all_jobqueue_length_spoofed':
- command => "/usr/bin/gmetric --name='Global JobQueue length'
--type=int32 --conf=/etc/ganglia/gmond.conf --spoof
'www.wikimedia.org:www.wikimedia.org' --value=(/usr/local/bin/mwscript
extensions/WikimediaMaintenance/getJobQueueLengths.php --totalonly | grep -oE
'[0-9]+') > /dev/null 2>&1",
+ command => "/usr/bin/gmetric --name='Global JobQueue length'
--type=int32 --conf=/etc/ganglia/gmond.conf --spoof
'www.wikimedia.org:www.wikimedia.org' --value=$(/usr/local/bin/mwscript
extensions/WikimediaMaintenance/getJobQueueLengths.php --totalonly | grep -oE
'[0-9]+') > /dev/null 2>&1",
user => mwdeploy,
ensure => present;
}
--
To view, visit https://gerrit.wikimedia.org/r/60371
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7f16c11d38a962fce85a1184a8d233351b25d689
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: ArielGlenn <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits