Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1343863 - collectd Causes Spam to System Journal
Summary: collectd Causes Spam to System Journal
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: collectd
Version: 23
Hardware: All
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: 2016-06-08 08:06 UTC by Geraden
Modified: 2016-07-10 06:00 UTC (History)
5 users (show)

Fixed In Version: collectd-5.5.1-3.fc23 collectd-5.5.1-3.fc24
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-19 07:26:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Script that installs and configures collectd in a very basic way for ease of reproducability. (2.01 KB, text/plain)
2016-06-08 08:06 UTC, Geraden
no flags Details

Description Geraden 2016-06-08 08:06:12 UTC
Created attachment 1165858 [details]
Script that installs and configures collectd in a very basic way for ease of reproducability.

Description of problem:

There is a bug in collectd that causes spammy messages to the system journal when using the exec plugin. Each successful data collection from this plugin causes a log entry. This can mean messages at rates of up to (and even over) once per second depending on the number of instances of the plugin configured and their interval settings.

Please note that although collectd-exec is a plugin, it is included in the main collectd package and just requires configuration to use.

The bug has been acknowledged and already fixed by the collectd project maintainers. See Github issue here: https://github.com/collectd/collectd/issues/664 .


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

(Current Fedora 23 package)
Version: 5.5.1 
Release: 2.fc23


How reproducible:

Easily reproducible. Any correct configuration of the exec plugin for collectd will cause the issue. See the man page here: https://collectd.org/documentation/manpages/collectd-exec.5.shtml


Steps to Reproduce:

1. Configure collectd-exec plugin to generate some metric (see attached for a script that sets up an example configuration).


Actual results:

Observe journal with "journalctl -r -u collectd"
Output:
<snip>
... 0 Success: 1 value has been dispatched.
... 0 Success: 1 value has been dispatched.
... 0 Success: 1 value has been dispatched.
... etc.
</snip>


Expected results:

Only non-success cases should generate a journal message.


Additional info:

The commit that fixes the bug can be seen here:
https://github.com/collectd/collectd/commit/10b10a6718dbb87c6890d4bc821a6e21c8b7b527
It has already been accepted and merged with the project's master.

Comment 1 Fedora Update System 2016-06-10 09:57:41 UTC
collectd-5.5.1-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-227196b5b2

Comment 2 Fedora Update System 2016-06-10 09:57:49 UTC
collectd-5.5.1-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d9e0d745ba

Comment 3 Fedora Update System 2016-06-10 17:59:51 UTC
collectd-5.5.1-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d9e0d745ba

Comment 4 Fedora Update System 2016-06-11 03:54:08 UTC
collectd-5.5.1-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-227196b5b2

Comment 5 Fedora Update System 2016-06-19 07:26:04 UTC
collectd-5.5.1-3.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2016-07-10 06:00:24 UTC
collectd-5.5.1-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.


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