Sha256: 14a2f95053042b8ca12e1b5264c355eb184d98a823ae686219fdfd6d5966aaff

Contents?: true

Size: 668 Bytes

Versions: 46

Compression:

Stored size: 668 Bytes

Contents

<%
  @path = '/etc/collectd/conf.d/collectd-ping.conf'

  ping_hosts = []
  if rubber_instances[rubber_env.host].role_names.include?('graphite_server')
    # monitor all servers from graphite_server
    ping_hosts = rubber_instances.collect {|ic| ic.full_name }.select {|h| h != rubber_env.full_host }
  elsif rubber_instances[rubber_env.host].role_names.include?('web_tools')
    # monitor just graphite_server from tools
    ping_hosts = Array((rubber_instances.for_role('graphite_server').first.full_name rescue nil))
  end

  @skip = (ping_hosts.size == 0)
%>

LoadPlugin ping
<Plugin "ping">
  <% ping_hosts.each do |h| %>
  Host "<%= h %>"
  <% end %>
</Plugin>

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
rubber-2.12.2 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.12.1 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.12.0 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.11.0 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.10.2 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.10.1 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.10.0 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.9.0 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.8.1 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.8.0 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.7.5 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.7.4 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.7.3 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.7.2 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.7.1 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.7.0 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.6.5 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.6.4 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.6.3 templates/collectd/config/rubber/role/collectd/collectd-ping.conf
rubber-2.6.2 templates/collectd/config/rubber/role/collectd/collectd-ping.conf