summaryrefslogtreecommitdiffstats
path: root/etc/munin/plugins/jenkins_builds_running
diff options
context:
space:
mode:
Diffstat (limited to 'etc/munin/plugins/jenkins_builds_running')
-rwxr-xr-xetc/munin/plugins/jenkins_builds_running5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/munin/plugins/jenkins_builds_running b/etc/munin/plugins/jenkins_builds_running
index 5166279a..8b4e31de 100755
--- a/etc/munin/plugins/jenkins_builds_running
+++ b/etc/munin/plugins/jenkins_builds_running
@@ -5,7 +5,7 @@
=head1 NAME
-jenkins_builds_running - Plugin to measure number of jenknis builds which are currently running
+jenkins_builds_running - Plugin to measure number of jenkins builds which are currently running
=head1 AUTHOR
@@ -29,6 +29,7 @@ if [ "$1" = "autoconf" ]; then
exit 0
fi
+JOB_PREFIXES=$(ls -1 /var/lib/jenkins/jobs/|cut -d "-" -f1-2|sort -u)
if [ "$1" = "config" ]; then
echo 'graph_title Jenkins Builds running'
@@ -38,8 +39,6 @@ if [ "$1" = "config" ]; then
echo 'graph_category jenkins'
echo "jenkins_builds_running.label $PREFIX builds_running"
echo "jenkins_builds_running.draw AREA"
- #print_warning jenkins_builds_running
- #print_critical jenkins_builds_running
exit 0
fi