X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/885563907152cea873316e283fc8cd9bdf0b8278..7a84671ba2dc615de3f49f3ee6cd9efd04eb55bc:/cookbooks/munin/recipes/default.rb diff --git a/cookbooks/munin/recipes/default.rb b/cookbooks/munin/recipes/default.rb index 3a5be0d61..ce771e8c8 100644 --- a/cookbooks/munin/recipes/default.rb +++ b/cookbooks/munin/recipes/default.rb @@ -288,7 +288,18 @@ else end end -# smart_ +node[:block_device].each do |name,attributes| + if attributes[:vendor] == "ATA" + munin_plugin "smart_#{name}" do + target "smart_" + end + else + munin_plugin "smart_#{name}" do + action :delete + end + end +end + munin_plugin "swap" munin_plugin "threads" munin_plugin "uptime"