diff options
author | Markus Heberling <markus@tisoft.de> | 2013-01-23 20:15:52 +0100 |
---|---|---|
committer | Markus Heberling <markus@tisoft.de> | 2013-01-24 20:51:17 +0100 |
commit | a2004f577c2e15d9b6cf482f0693601f43c43fad (patch) | |
tree | 617eb4591d13598b6ee805c7fbf5d038a426a3f3 /templates/client.erb | |
parent | 06983bff6ae91dc576e06e7d467ce248abb9ca23 (diff) |
added support for use_ssh for munin 2.0
Diffstat (limited to 'templates/client.erb')
-rw-r--r-- | templates/client.erb | 4 |
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 -%> |