lpstat plugin doesn't return job count

Bug #1505556 reported by Stevel
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
munin (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Won't Fix
Low
Unassigned

Bug Description

Ubuntu release: 14.04.3 LTS
munin-plugins-core version: 2.0.19-3

The returned job count is always zero because a variable assignment is missing from the script.

Tags: patch
Revision history for this message
Stevel (stevel-launchpad) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "lpstat-return-number-of-jobs.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Stevel (stevel-launchpad) wrote :

In addition it seems that the metrics should be GAUGE instead of COUNTER. New patch attached.

Revision history for this message
Stevel (stevel-launchpad) wrote :
Revision history for this message
Robie Basak (racb) wrote :

Thank you for submitting this patch and helping to make Ubuntu better.

Does this bug affect munin upstream? If so it should be sent there. We can cherry-pick it in Wily and Trusty as needed after it is accepted. Otherwise users will only get a temporary fix that will regress as soon as they upgrade to a newer release.

tags: added: needs-upstream-report
Revision history for this message
Robie Basak (racb) wrote :

Looks like $n_jobs is set correctly upstream and in 2.0.25-1 in Wily, so this is fixed but could be cherry-picked to Trusty.

Upstream still outputs a COUNTER and not a GAUGE (from https://github.com/munin-monitoring/munin/blob/devel/plugins/node.d/lpstat). If you think it should be changed, then please file an issue with upstream (https://github.com/munin-monitoring/munin/issues). It is not appropriate for Ubuntu to do something different from upstream here.

You've described two separate issues here but this bug can track only one, so I'll track the $n_jobs issue. If you want you can file a separate bug here in Ubuntu for the COUNTER/GAUGE thing, but I will not consider it valid for Ubuntu unless upstream say it is valid so you should file a bug upstream if you want it fixed.

For the $n_jobs issue tracked here, it is fixed in Wily so I will create a task for Trusty and mark it Fix Released for the development release (Wily). If you want to see this fixed in Trusty, then please follow https://wiki.ubuntu.com/StableReleaseUpdates#Procedure. In particular I need a step-by-step test case for verification, and a commitment from you that you will be prepared to carry out the verification. If you can do that then we can get this fixed for you in Trusty. Thanks!

Changed in munin (Ubuntu):
status: New → Fix Released
Changed in munin (Ubuntu Trusty):
status: New → Triaged
importance: Undecided → Low
tags: removed: needs-upstream-report
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Hello, Trusty reached "End of Standard Support" a while ago and so I am marking this as "Won't Fix". Thank you.

Changed in munin (Ubuntu Trusty):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.