]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/templates/default/munin.hddtemp.erb
Use ohai disk information to configure smartd and munin
[chef.git] / cookbooks / hardware / templates / default / munin.hddtemp.erb
index 330be0630a0e9442c5020c567f45561ddcbe33de..1263fa7b371cddeecd73ed8ea59ef5fe1853ef9a 100644 (file)
@@ -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 -%>