Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

[Plugin LWRP] Please support write plugins syntax like "influxdb" one #47

Open
BarthV opened this issue Jul 30, 2015 · 1 comment
Open

Comments

@BarthV
Copy link

BarthV commented Jul 30, 2015

Ohai Chefs,

I need to put a collectd plugin like this one :

LoadPlugin "write_sensu"
<Plugin write_sensu>
  <Node "localagent">
    Host "127.0.0.1"
    Port "3030"
    Separator "."
    StoreRates true
    AlwaysAppendDS false
    Metrics true
    MetricHandler "influx"
    Notifications false
  </Node>
</Plugin>

Currently collectd_plugin lwrp is not able to create the <Node "localagent"> sub-item. The configuration can only be "flat".

Is is possible to handle this case ?

@BarthV
Copy link
Author

BarthV commented Jul 31, 2015

I had to dig on lwrp provider to find out that we can specify a template to it :)

So currently it's working with a local custom template with the appropriate <Node "localagent">:

   "write_sensu" => {
    "template" => "write_sensu.conf.erb",
    "cookbook" => "my-sensu",
    "config" => {
      "Host" => "127.0.0.1",
      "Port" => "3030",
      "Separator" => ".",
      "StoreRates" => true,
      "AlwaysAppendDS" => false,
      "Metrics" => true,
      "MetricHandler" => "influx",
      "Notifications" => false
    }
  }

It would still be nice to have a way to specify custom sub-items in "config" hash.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants