Skip to content

Commit

Permalink
added CollectStatistics option to rrdcached plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Micha Krause committed Jan 23, 2015
1 parent 880baad commit 88fb530
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
23 changes: 12 additions & 11 deletions manifests/plugin/rrdcached.pp
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# https://collectd.org/wiki/index.php/Rrdcached
class collectd::plugin::rrdcached (
$ensure = present,
$daemonaddress = 'unix:/tmp/rrdcached.sock',
$datadir = '/var/lib/rrdcached/db/collectd',
$createfiles = true,
$createfilesasync = false,
$stepsize = undef,
$heartbeat = undef,
$interval = undef,
$rrarows = undef,
$rratimespan = [],
$xff = undef,
$ensure = present,
$daemonaddress = 'unix:/tmp/rrdcached.sock',
$datadir = '/var/lib/rrdcached/db/collectd',
$createfiles = true,
$createfilesasync = false,
$stepsize = undef,
$heartbeat = undef,
$interval = undef,
$rrarows = undef,
$rratimespan = [],
$xff = undef,
$collectstatistics = undef,
) {
validate_array($rratimespan)
validate_bool($createfiles, $createfilesasync)
Expand Down
3 changes: 3 additions & 0 deletions templates/plugin/rrdcached.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@
<% if @xff -%>
XFF "<%= @xff %>"
<% end -%>
<% unless @collectstatistics.nil? -%>
CollectStatistics "<%= @collectstatistics %>"
<% end -%>
</Plugin>

0 comments on commit 88fb530

Please sign in to comment.