]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/recipes/default.rb
Add host name to munin email subject
[chef.git] / cookbooks / hardware / recipes / default.rb
index d4c8d047037dc6650c7c52c1c7a90620cfd61dcb..551dd5b382b43b311233fd06cdca08e27b793c81 100644 (file)
@@ -405,6 +405,7 @@ if disks.count > 0
 
   service "smartmontools" do
     action [:enable, :start]
+    supports :status => true, :restart => true, :reload => true
   end
 
   disks.each do |disk|
@@ -430,7 +431,7 @@ else
 end
 
 plugins = Dir.glob("/etc/munin/plugins/smart_*").map { |p| File.basename(p) } -
-          disks.map { |d| "smart_#{d[:munin_name]}" }
+          disks.map { |d| "smart_#{d[:munin]}" }
 
 plugins.each do |plugin|
   munin_plugin plugin do