X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f963ff457182611c62036674840eb588b48fd704..bfed2ce1aa34276f71876ff265c1e0f5980331e4:/cookbooks/hardware/templates/default/munin.hddtemp.erb?ds=sidebyside diff --git a/cookbooks/hardware/templates/default/munin.hddtemp.erb b/cookbooks/hardware/templates/default/munin.hddtemp.erb index 330be0630..9d5e4958e 100644 --- a/cookbooks/hardware/templates/default/munin.hddtemp.erb +++ b/cookbooks/hardware/templates/default/munin.hddtemp.erb @@ -3,8 +3,8 @@ [hddtemp_smartctl] env.drives <%= @disks.map { |d| d[:hddtemp] }.sort.join(" ") %> <% @disks.sort_by { |d| d[:hddtemp] }.each do |disk| -%> -<% if disk[:driver] -%> -env.type_<%= disk[:hddtemp] %> <%= disk[:driver] %>,<%= disk[:id] %> +<% if disk[:smart] -%> +env.type_<%= disk[:hddtemp] %> <%= disk[:smart] %> <% end -%> env.dev_<%= disk[:hddtemp] %> <%= disk[:device] %> <% end -%>