summaryrefslogtreecommitdiff
path: root/templates/client.erb
diff options
context:
space:
mode:
authorduritong <peter.meier+github@immerda.ch>2013-01-25 01:43:48 -0800
committerduritong <peter.meier+github@immerda.ch>2013-01-25 01:43:48 -0800
commitf110eca84d3bf83eb420bd5a850e605d489a157e (patch)
tree617eb4591d13598b6ee805c7fbf5d038a426a3f3 /templates/client.erb
parent06983bff6ae91dc576e06e7d467ce248abb9ca23 (diff)
parenta2004f577c2e15d9b6cf482f0693601f43c43fad (diff)
Merge pull request #7 from tisoft/use_ssh
added support for use_ssh for munin 2.0
Diffstat (limited to 'templates/client.erb')
-rw-r--r--templates/client.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/client.erb b/templates/client.erb
index 7131ade..ba03da5 100644
--- a/templates/client.erb
+++ b/templates/client.erb
@@ -12,8 +12,12 @@
# Description: <%= description.gsub!(/\n/, ' ') %>
<% end -%>
[<%= fhost.downcase %>]
+<% if use_ssh -%>
+ address ssh://<%= host %>/bin/nc localhost <%= port %>
+<% else -%>
address <%= host %>
port <%= port %>
+<% end -%>
<% if config -%><% config.each do |val| -%>
<%= val -%>
<% end -%><% end -%>