Skip to content

Commit

Permalink
make Ganglia work for Eucalyptus by using IPs instead of internal DNS…
Browse files Browse the repository at this point in the history
… names
  • Loading branch information
jweiss committed Sep 22, 2012
1 parent c83b0c9 commit e4b40d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scalarium_ganglia/recipes/configure-client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
action :nothing
end

monitoring_master = node[:scalarium][:roles]['monitoring-master'][:instances].collect{|instance, names| names["private_dns_name"]}.first rescue nil
monitoring_master = node[:scalarium][:roles]['monitoring-master'][:instances].collect{|instance, names| names["private_ip"]}.first rescue nil

template "/etc/ganglia/gmond.conf" do
source "gmond.conf.erb"
Expand Down
4 changes: 2 additions & 2 deletions scalarium_ganglia/templates/default/gmond.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ globals {
* of a <CLUSTER> tag. If you do not specify a cluster tag, then all <HOSTS> will
* NOT be wrapped inside of a <CLUSTER> tag. */
cluster {
name = "<%= @cluster_name.gsub(/[\(\)\[\]]/,'') %>"
name = "<%= @cluster_name.gsub(/[\(\)\[\]\&]/,'') %>"
owner = "Scalarium"
latlong = "unspecified"
url = "unspecified"
Expand All @@ -40,7 +40,7 @@ udp_send_channel {
}
<% end %>

<% if @monitoring_master && @monitoring_master == node[:scalarium][:instance][:private_dns_name] %>
<% if @monitoring_master && @monitoring_master == node[:scalarium][:instance][:private_ip] %>
udp_recv_channel {
port = <%= node[:ganglia][:udp_client_port] %>
family = inet4
Expand Down

0 comments on commit e4b40d7

Please sign in to comment.