From 388da4a4805d2d70809dc0c79fddb87ac73e57ee Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 9 Nov 2012 15:10:52 +0100 Subject: use the first underscore (only) as prefix seperator --- etc/munin/plugins/jenkins_builds | 2 +- etc/munin/plugins/jenkins_builds_results | 2 +- etc/munin/plugins/jenkins_builds_running | 2 +- etc/munin/plugins/jenkins_jobs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/munin/plugins/jenkins_builds b/etc/munin/plugins/jenkins_builds index 3e7b09db..fd2a6930 100755 --- a/etc/munin/plugins/jenkins_builds +++ b/etc/munin/plugins/jenkins_builds @@ -29,7 +29,7 @@ if [ "$1" = "autoconf" ]; then exit 0 fi -JOB_PREFIXES=$(ls -1 /var/lib/jenkins/jobs/|cut -d "-" -f1-2|sort -u) +JOB_PREFIXES=$(ls -1 /var/lib/jenkins/jobs/|cut -d "-" -f1|sort -u) if [ "$1" = "config" ]; then echo 'graph_title Jenkins Builds in the last 24h' diff --git a/etc/munin/plugins/jenkins_builds_results b/etc/munin/plugins/jenkins_builds_results index 9458b5c7..f30eddef 100755 --- a/etc/munin/plugins/jenkins_builds_results +++ b/etc/munin/plugins/jenkins_builds_results @@ -29,7 +29,7 @@ if [ "$1" = "autoconf" ]; then exit 0 fi -JOB_PREFIXES=$(ls -1 /var/lib/jenkins/jobs/|cut -d "-" -f1-2|sort -u) +JOB_PREFIXES=$(ls -1 /var/lib/jenkins/jobs/|cut -d "-" -f1|sort -u) if [ "$1" = "config" ]; then echo 'graph_title Jenkins Build results' diff --git a/etc/munin/plugins/jenkins_builds_running b/etc/munin/plugins/jenkins_builds_running index 8b4e31de..bcd80463 100755 --- a/etc/munin/plugins/jenkins_builds_running +++ b/etc/munin/plugins/jenkins_builds_running @@ -29,7 +29,7 @@ if [ "$1" = "autoconf" ]; then exit 0 fi -JOB_PREFIXES=$(ls -1 /var/lib/jenkins/jobs/|cut -d "-" -f1-2|sort -u) +JOB_PREFIXES=$(ls -1 /var/lib/jenkins/jobs/|cut -d "-" -f1|sort -u) if [ "$1" = "config" ]; then echo 'graph_title Jenkins Builds running' diff --git a/etc/munin/plugins/jenkins_jobs b/etc/munin/plugins/jenkins_jobs index a93967a2..949d1d82 100755 --- a/etc/munin/plugins/jenkins_jobs +++ b/etc/munin/plugins/jenkins_jobs @@ -29,7 +29,7 @@ if [ "$1" = "autoconf" ]; then exit 0 fi -JOB_PREFIXES=$(ls -1 /var/lib/jenkins/jobs/|cut -d "-" -f1-2|sort -u) +JOB_PREFIXES=$(ls -1 /var/lib/jenkins/jobs/|cut -d "-" -f1|sort -u) if [ "$1" = "config" ]; then echo 'graph_title Jenkins Jobs' -- cgit v1.2.3-70-g09d2