Bug 1065338 - collection.conf has incorrect DataSources for users series
Summary: collection.conf has incorrect DataSources for users series
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: collectd
Version: 20
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Ruben Kerkhof
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-14 12:01 UTC by Joel Uckelman
Modified: 2014-06-27 14:13 UTC (History)
3 users (show)

Fixed In Version: collectd-5.4.1-2.fc20
Clone Of:
: 1065342 (view as bug list)
Environment:
Last Closed: 2014-06-17 23:33:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
user DataSources patch (475 bytes, patch)
2014-02-14 12:01 UTC, Joel Uckelman
no flags Details | Diff
Patch for Color attributes (1.19 KB, patch)
2014-03-04 11:13 UTC, Joel Uckelman
no flags Details | Diff

Description Joel Uckelman 2014-02-14 12:01:31 UTC
Created attachment 863241 [details]
user DataSources patch

Description of problem:

collection.conf expects the "users" data series to have DataSources set to "users", but what collectd produces has it set to "value" instead. This prevents collectd-web from producing a users graph.


Version-Release number of selected component (if applicable):

collectd-web-5.4.1-1.fc20.x86_64


How reproducible:

Always.


Steps to Reproduce:
1. Turn on collectd "users" plugin.
2. Collect some data.
3. Try to graph it with collectd-web.

Actual results:

No graph.


Expected results:

A graph of logged in users over time.


Additional info:

The attached patch fixes the problem.

Comment 1 Ruben Kerkhof 2014-03-02 13:10:12 UTC
Hi Joel,

Collectd 5 changed the datasources, and collection.conf is actually right.
See https://github.com/raimue/collectd/commit/6c1415d and https://collectd.org/wiki/index.php/V4_to_v5_migration_guide

I expect you need to migrate your files from V4 to V5 format.

Comment 2 Joel Uckelman 2014-03-03 17:28:35 UTC
What you're saying here looks like the opposite of what the link says:

> The convention was and is that data sets with only one data source should use > the name "value" for this data source. This has been fixed for the following
> types:
>
> ...
>
> users

That is, v4 had the users plugin producing a data set called "users", and this has been corrected to be "value" in v5. This is exactly what the patch I attached does for collection.conf.

I contend that my patch is correct, and the link supports this. If I'm misreading, please show me how I'm misreading.

Comment 3 Joel Uckelman 2014-03-03 17:39:43 UTC
Additionally, the commit you've linked to on github makes the same changes to  to DataSources in collection.conf as the patches I submitted.

Comment 4 Ruben Kerkhof 2014-03-03 20:47:22 UTC
My apologies, I didn't notice that collection.conf in the collectd rpm is a Fedora specific file and differs from upstream.

I haven't used collection3 before, what do you think, would using the upstream config file (https://github.com/collectd/collectd/blob/collectd-5.4/contrib/collection3/etc/collection.conf) work?

Comment 5 Joel Uckelman 2014-03-03 22:02:12 UTC
(In reply to Ruben Kerkhof from comment #4)
> I haven't used collection3 before, what do you think, would using the
> upstream config file
> (https://github.com/collectd/collectd/blob/collectd-5.4/contrib/collection3/
> etc/collection.conf) work?

It looks like 6c1415d has half of the changes my patches made (fixing DataSources), and 147690b has the other half (fixing DSName). There are a few additional changes in the upstream config. I'll test out the upstream config file tomorrow to see if anything needs modifying and report back.

Comment 6 Joel Uckelman 2014-03-04 11:13:19 UTC
Created attachment 870331 [details]
Patch for Color attributes

The upstream collection.conf works fine for me, with the exception that the v4 -> v5 migration of which 6c1415d and 147690b were a part still missed updating the Color attributes for five of the graph types. I've attached a patch to fix that and also sent a pull request upstream (https://github.com/collectd/collectd/pull/568).

Comment 7 Ruben Kerkhof 2014-06-04 13:05:37 UTC
Hi Joel,

Thanks for the patch, I took it from the upstream 5.3 branch.
Would you mind giving the following scratch build a try and see if I didn't overlook something? http://koji.fedoraproject.org/koji/taskinfo?taskID=6923901

Comment 8 Fedora Update System 2014-06-07 17:31:27 UTC
collectd-5.4.1-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/collectd-5.4.1-2.fc20

Comment 9 Fedora Update System 2014-06-10 02:55:17 UTC
Package collectd-5.4.1-2.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing collectd-5.4.1-2.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7130/collectd-5.4.1-2.fc20
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2014-06-17 23:33:08 UTC
collectd-5.4.1-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Joel Uckelman 2014-06-27 14:13:26 UTC
I didn't have time earlier, but I had a look just now and the updated build looks ok to me.


Note You need to log in before you can comment on or make changes to this bug.