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.9.0 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.8.1 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.8.0 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.7.5 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.7.4 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.7.3 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.7.2 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.7.1 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.7.0 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.6.5 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.6.4 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.6.3 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.6.2 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.6.1 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.6.0 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.5.5 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.5.4 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.5.3 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.5.2 templates/collectd/config/rubber/role/collectd/collectd.conf
rubber-2.5.1 templates/collectd/config/rubber/role/collectd/collectd.conf