diff options
Diffstat (limited to 'hosts/jenkins/etc/munin')
-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)' |