summaryrefslogtreecommitdiffstats
path: root/hosts/jenkins/etc/munin/plugins
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-05 14:29:08 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-05 14:29:08 +0200
commit71289f0d74a4fb04e64487bfecd9d9de58a7f8bc (patch)
treee324f2355d26cdf41c5b12e23287c4bddb55992b /hosts/jenkins/etc/munin/plugins
parent76c746024d8ba163e52f0f26e0bf8c20a4d69399 (diff)
downloadjenkins.debian.net-71289f0d74a4fb04e64487bfecd9d9de58a7f8bc.tar.xz
reproducible: replace 'ps fax|grep -v grep|grep foo|wc -l' with 'pgrep -fc foo'
Diffstat (limited to 'hosts/jenkins/etc/munin/plugins')
-rwxr-xr-xhosts/jenkins/etc/munin/plugins/jenkins_builds_running2
1 files changed, 1 insertions, 1 deletions
diff --git a/hosts/jenkins/etc/munin/plugins/jenkins_builds_running b/hosts/jenkins/etc/munin/plugins/jenkins_builds_running
index 24084f10..19e1752f 100755
--- a/hosts/jenkins/etc/munin/plugins/jenkins_builds_running
+++ b/hosts/jenkins/etc/munin/plugins/jenkins_builds_running
@@ -40,4 +40,4 @@ if [ "$1" = "config" ]; then
exit 0
fi
-echo "jenkins_builds_running.value $(ps fax|grep /tmp/hudson|grep -v grep|wc -l)"
+echo "jenkins_builds_running.value $(pgrep -fc /tmp/hudson)"