Bug 719809 - collectd-web config file DataDir value wrong
Summary: collectd-web config file DataDir value wrong
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: collectd
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alan Pevec (Fedora)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-08 03:34 UTC by Matt Domsch
Modified: 2011-12-23 03:25 UTC (History)
3 users (show)

Fixed In Version: collectd-4.10.4-1.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-23 03:25:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Matt Domsch 2011-07-08 03:34:15 UTC
Description of problem:
collectd.spec generates /etc/collectd.d/rrdtool.conf , but does not include sufficient information to make it usable directly.  The missing stanza should look like:

<Plugin "rrdtool">
  DataDir "/var/lib/collectd/rrd"
  CacheFlush 120
  WritesPerSecond 50
</Plugin>

However, collectd-web provides /etc/collection.conf, which specifies DataDir as "/var/lib/collectd".

Furthermore, the default collected /etc/collectd.conf file provided has a commented-out stanza for rrdtool, as such:


#<Plugin rrdtool>
#       DataDir "/usr/var/lib/collectd/rrd"
#       CacheTimeout 120
#       CacheFlush   900
#</Plugin>

which suggests that /var/lib/collectd/rrd would be appropriate.  (note also, each of those suggest /usr/var/lib/... instead of simply /var/lib, that should be fixed somehow as well...)

I suggest adding to collectd.spec to write out the stanza above into rrdtool.conf, and fix /etc/collection.conf to use /var/lib/collectd/rrd as the default value for DataDir.  In this way, installing collectd-rrdtool and collected-web, everything will "just work" out of the box.


Version-Release number of selected component (if applicable):
collectd-4.9.5-2.fc14, but appears similar in 4.10.3-4.

Comment 1 Fedora Update System 2011-11-29 10:07:05 UTC
collectd-4.10.4-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/collectd-4.10.4-1.fc16

Comment 2 Fedora Update System 2011-11-30 02:03:28 UTC
Package collectd-4.10.4-1.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing collectd-4.10.4-1.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16624/collectd-4.10.4-1.fc16
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2011-12-23 03:25:33 UTC
collectd-4.10.4-1.fc16 has been pushed to the Fedora 16 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.