diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-03-15 17:03:29 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-03-15 17:03:29 +0100 |
commit | e195de95f4bf2ee4ad2d742cfd2f7eb1e47bdfc4 (patch) | |
tree | 90c84c6d125b767a6e2390cdd57e5e9b4daa8783 /hosts | |
parent | 1f51f01d27495d78dce22151db150e731898dcfd (diff) | |
download | jenkins.debian.net-e195de95f4bf2ee4ad2d742cfd2f7eb1e47bdfc4.tar.xz |
deal with jenkins not running
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'hosts')
-rwxr-xr-x | hosts/jenkins/etc/munin/plugins/jenkins_jstats | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hosts/jenkins/etc/munin/plugins/jenkins_jstats b/hosts/jenkins/etc/munin/plugins/jenkins_jstats index 6e006b0d..2df10f06 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)' |