[Qa-jenkins-scm] [jenkins.debian.net] 01/01: deal with jenkins not running
Holger Levsen
holger at layer-acht.org
Wed Mar 15 16:03:34 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit e195de95f4bf2ee4ad2d742cfd2f7eb1e47bdfc4
Author: Holger Levsen <holger at layer-acht.org>
Date: Wed Mar 15 17:03:29 2017 +0100
deal with jenkins not running
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
hosts/jenkins/etc/munin/plugins/jenkins_jstats | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hosts/jenkins/etc/munin/plugins/jenkins_jstats b/hosts/jenkins/etc/munin/plugins/jenkins_jstats
index 6e006b0..2df10f0 100755
--- a/hosts/jenkins/etc/munin/plugins/jenkins_jstats
+++ b/hosts/jenkins/etc/munin/plugins/jenkins_jstats
@@ -42,6 +42,8 @@ if [ -f $STATEFILE ] && [ "$1" = "" ] ; then
fi
JENKINS_PID=$(jps |grep jenkins.war|cut -d "j" -f1)
+if [ "$JENKINS_PID" = "" ] ; then exit 0 ; fi
+
JOB_PREFIXES=$(for i in $(jstat -gc $JENKINS_PID | head -1) ; do echo -n "$i " ; done)
if [ "$1" = "config" ]; then
echo 'graph_title jenkins.war jstat -gc (mostly KB shown)'
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list