We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f270d16 + e900a09 commit a3202b0Copy full SHA for a3202b0
1 file changed
templates/plugin/snmp.conf.erb
@@ -5,15 +5,15 @@
5
Type "<%= val['Type'] %>"
6
Table <%= val['Table'] %>
7
Instance "<%= val['Instance'] %>"
8
- Values <% val['Values'].sort.each do |x| -%>"<%= x %>" <% end %>
+ Values <% Array(val['Values']).sort.each do |x| -%>"<%= x %>" <% end %>
9
</Data>
10
<% end -%>
11
<% @hosts.sort_by {|k,v| k}.each do |key,val| -%>
12
<Host "<%=key %>">
13
Address "<%= val['Address'] %>"
14
Version <%= val['Version'] %>
15
Community "<%= val['Community'] %>"
16
- Collect <% val['Collect'].sort.each do |x| -%>"<%= x -%>" <% end %>
+ Collect <% Array(val['Collect']).sort.each do |x| -%>"<%= x -%>" <% end %>
17
Interval <%= val['Interval'] %>
18
</Host>
19
0 commit comments