Sha256: 98e9b0a7058c121b5ca6d708f6d6082e46fbce2d44c50a18b77bdfb824cfc872

Contents?: true

Size: 1.67 KB

Versions: 74

Compression:

Stored size: 1.67 KB

Contents

<%
  rubber_scripts = `#{Rubber.root}/#{rubber_env.rubber_collectd_runner} config`.split("\n") rescue []

  @path = '/etc/collectd/collectd.conf'
  @post = "mkdir -p /etc/collectd/conf.d/ /etc/collectd/thresholds.d/ /etc/collectd/filters.d/ /etc/collectd/plugins/ "
%>
# Config file for collectd(1). Generated by Rubber
#
# Some plugins need additional configuration and are disabled by default.
# Please read collectd.conf(5) for details.
#
# You should also read /usr/share/doc/collectd-core/README.Debian.plugins
# before enabling any more plugins.

Hostname "<%= rubber_env.host %>"
#BaseDir "/var/lib/collectd"
#PluginDir "/usr/lib/collectd"
TypesDB "/usr/share/collectd/types.db" "/etc/collectd/types.db"
Interval 60
#Timeout 2
#ReadThreads 5

LoadPlugin syslog

<Plugin syslog>
	LogLevel info
</Plugin>

LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin exec
LoadPlugin entropy
LoadPlugin interface
LoadPlugin irq
LoadPlugin load
LoadPlugin memory
LoadPlugin processes
#LoadPlugin python
LoadPlugin rrdtool
<% if `swapon -s | wc -l`.to_i > 1 %>
LoadPlugin swap
<% end %>
#LoadPlugin table
#LoadPlugin tail
#LoadPlugin tcpconns
LoadPlugin users

LoadPlugin notify_email

<Plugin "notify_email">
  From "collectd@<%= rubber_env.full_host %>"
  Recipient "<%= rubber_env.admin_email %>"
  Subject "Collectd notify: %s@%s"
</Plugin>

<%
  if rubber_scripts.size > 0
%>

<Plugin exec>
	Exec <%= rubber_env.app_user %> "/bin/bash" "-l" "-c" "cd <%= "/mnt/#{rubber_env.app_name}-#{Rubber.env}/current" %> && bundle exec <%= rubber_env.rubber_collectd_runner %>"
</Plugin>

<% end %>

Include "/etc/collectd/conf.d/*.conf"
Include "/etc/collectd/thresholds.d/*.conf"
Include "/etc/collectd/filters.d/*.conf"

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
rubber-2.0.2 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.0.1 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.0.0 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.0.0.pre12 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.0.0.pre11 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.0.0.pre10 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.0.0.pre9 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.0.0.pre8 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.0.0.pre7 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.0.0.pre5 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.0.0.pre4 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.0.0.pre3 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.0.0.pre2 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.0.0.pre1 templates/collectd/config/rubber/role/collectd/collectd.conf