Red Hat Bugzilla – Bug 681615
collectd-postgresql wrongly installs postgresql_default.conf as documentation
Last modified: 2013-01-23 18:34:48 EST
Description of problem:
collectd-postgresql expects postgresql_default.conf to be installed in the /usr/share/collectd/ directory, from which its contents are unconditionally loaded in addition to any user-specified queries.
Instead, this file is installed under the %docdir, causing collectd-postgresql to fail at runtime.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install collectd-postgresql.conf
2. Define a config file which makes use of this plugin. For instance:
(the above presuming a "mydb" service present in /etc/pg_service.conf)
The collectd-postgresql plugin fails to load with the following errors:
postgresql: Failed to read default config (/usr/share/collectd/postgresql_default.conf).
postgresql: Default config (/usr/share/collectd/postgresql_default.conf) did not define any queries - please check your installation.
collectd will run its default set of queries against PostgreSQL's internal statistics tables.
collectd-4.10.8-2.fc17 has been submitted as an update for Fedora 17.
collectd-4.10.8-2.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.