Skip to content

Commit

Permalink
Add IPv6 support for gmond listener
Browse files Browse the repository at this point in the history
This commit adds the 'family' parameter for udp and tcp listeners
for the gmond config, for Debian based systems.
  • Loading branch information
Xav Paice committed Mar 10, 2014
1 parent 37252ad commit d21f12e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/gmond.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
# -mcast_join
# -port
# -bind
# -family
#
# defaults to:
# [ { mcast_join => '239.2.11.71', port => 8649, ttl => 1 } ]
Expand All @@ -47,6 +48,7 @@
# array of hashes. Valid keys are:
#
# -port
# -family
#
# defaults to:
# [ { port => 8659 } ]
Expand Down
6 changes: 6 additions & 0 deletions templates/gmond.conf.debian.erb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ udp_recv_channel {
<%- if channel['bind'] then -%>
bind = <%= channel['bind'] %>
<%- end -%>
<%- if channel['family'] then -%>
family = <%= channel['family'] %>
<%- end -%>
}

<% end -%>
Expand All @@ -75,6 +78,9 @@ tcp_accept_channel {
<%- if channel['port'] then -%>
port = <%= channel['port'] %>
<%- end -%>
<%- if channel['family'] then -%>
family = <%= channel['family'] %>
<%- end -%>
}

<% end -%>
Expand Down

0 comments on commit d21f12e

Please sign in to comment.