puppet-collectd icon indicating copy to clipboard operation
puppet-collectd copied to clipboard

Custom types.db file error

Open alvin-huang opened this issue 8 years ago • 2 comments

The documentation suggests putting custom collectd types in /etc/collectd/types.db. However, currently, I am getting the following error:

Error: Could not set 'file' on ensure: No such file or directory - /etc/collectd/types.db20160408-28979-1ct4jus.lock
Error: Could not set 'file' on ensure: No such file or directory - /etc/collectd/types.db20160408-28979-1ct4jus.lock
Wrapped exception:
No such file or directory - /etc/collectd/types.db20160408-28979-1ct4jus.lock
Error: /Stage[main]/Profiles::Puppetmaster/Collectd::Typesdb[/etc/collectd/types.db]/Concat[/etc/collectd/types.db]/File[/etc/collectd/types.db]/ensure: change from absent to file failed: Could not set 'file' on ensure: No such file or directory - /etc/collectd/types.db20160408-28979-1ct4jus.lock

The /etc/collectd directory is not created but ultimately the blank file should probably be there too at /etc/collectd/types.db

alvin-huang avatar Apr 08 '16 20:04 alvin-huang

This seems tangentially related to #212. @bastelfreak any ideas on how we could refactor params? I'm thinking we break it up into a $collectd_dir and a $collectd_d_dir. It would require a significant refactor of the module.

jyaworski avatar Apr 11 '16 00:04 jyaworski

@nibalizer could we potentially ship collectd.conf everywhere and have it include collectd.d?

jyaworski avatar Apr 17 '16 01:04 jyaworski