Skip to content

Commit

Permalink
Adding support for WriteQueueLimitLow & WriteQueueLimitHigh, which we…
Browse files Browse the repository at this point in the history
…re added in collectd 5.4
  • Loading branch information
Joshua Garnett committed Sep 12, 2014
1 parent 396d7ee commit 3b691fd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
26 changes: 14 additions & 12 deletions manifests/init.pp
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
#
class collectd(
$fqdnlookup = true,
$collectd_hostname = $::hostname,
$interval = 10,
$include = [],
$purge = undef,
$purge_config = false,
$recurse = undef,
$threads = 5,
$timeout = 2,
$typesdb = [],
$package_name = $collectd::params::package,
$version = installed,
$fqdnlookup = true,
$collectd_hostname = $::hostname,
$interval = 10,
$include = [],
$purge = undef,
$purge_config = false,
$recurse = undef,
$threads = 5,
$timeout = 2,
$typesdb = [],
$write_queue_limit_high = undef,
$write_queue_limit_low = undef,
$package_name = $collectd::params::package,
$version = installed,
) inherits collectd::params {

$plugin_conf_dir = $collectd::params::plugin_conf_dir
Expand Down
6 changes: 6 additions & 0 deletions templates/collectd.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ TypesDB<% @typesdb.each do |path| -%> "<%= path %>"<% end %>
<% else -%>
#TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db"
<% end -%>
<% if @write_queue_limit_high -%>
WriteQueueLimitHigh <%= @write_queue_limit_high %>
<% end -%>
<% if @write_queue_limit_low -%>
WriteQueueLimitLow <%= @write_queue_limit_low %>
<% end -%>
Interval <%= @interval %>
Timeout <%= @timeout %>
ReadThreads <%= @threads %>
Expand Down

0 comments on commit 3b691fd

Please sign in to comment.