From c9307cbe70282041aacb725ab411c16bb4b0da3b Mon Sep 17 00:00:00 2001 From: qgarnier Date: Wed, 8 Mar 2023 11:10:25 +0000 Subject: [PATCH] (plugin) apps::controlm::restapi - mode jobs fix perfdata (#4269) --- src/apps/controlm/restapi/mode/jobs.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/controlm/restapi/mode/jobs.pm b/src/apps/controlm/restapi/mode/jobs.pm index 58c9c5fdf..3c5c3216b 100644 --- a/src/apps/controlm/restapi/mode/jobs.pm +++ b/src/apps/controlm/restapi/mode/jobs.pm @@ -131,7 +131,7 @@ sub set_counters { } }, { label => 'jobs-executing', nlabel => 'jobs.executing.count', set => { - key_values => [ { name => 'running' }, { name => 'total' } ], + key_values => [ { name => 'executing' }, { name => 'total' } ], output_template => 'executing: %s', perfdatas => [ { template => '%s', min => 0, max => 'total' } @@ -229,7 +229,7 @@ sub manage_selection { type => $job->{type}, status => lc($job->{status}), elapsed => $elapsed, - failed => 1 + failed => $failed }; } }