X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/6a91072ee77724069f37eefdde66fd50bfa9da00..2d43acf0477a2dbf2efaed7480d0d73454d8196e:/cookbooks/hardware/recipes/default.rb?ds=inline diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index d4c8d0470..551dd5b38 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -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