(plugin) apps::controlm::restapi - mode jobs fix perfdata (#4269)
This commit is contained in:
parent
10f7d0c697
commit
c9307cbe70
|
@ -131,7 +131,7 @@ sub set_counters {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ label => 'jobs-executing', nlabel => 'jobs.executing.count', set => {
|
{ label => 'jobs-executing', nlabel => 'jobs.executing.count', set => {
|
||||||
key_values => [ { name => 'running' }, { name => 'total' } ],
|
key_values => [ { name => 'executing' }, { name => 'total' } ],
|
||||||
output_template => 'executing: %s',
|
output_template => 'executing: %s',
|
||||||
perfdatas => [
|
perfdatas => [
|
||||||
{ template => '%s', min => 0, max => 'total' }
|
{ template => '%s', min => 0, max => 'total' }
|
||||||
|
@ -229,7 +229,7 @@ sub manage_selection {
|
||||||
type => $job->{type},
|
type => $job->{type},
|
||||||
status => lc($job->{status}),
|
status => lc($job->{status}),
|
||||||
elapsed => $elapsed,
|
elapsed => $elapsed,
|
||||||
failed => 1
|
failed => $failed
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue