X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/9e6069ae06e994e399ac0952ff2a712dc968e7af..50c7aeade5b0efe29ad8ff0f017688182adef834:/cookbooks/hardware/recipes/default.rb diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index 3a93a4ed9..6a324a36e 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -18,6 +18,7 @@ # include_recipe "tools" +include_recipe "munin" case node[:cpu][:"0"][:vendor_id] when "GenuineIntel" @@ -410,6 +411,12 @@ if disks.count > 0 supports :status => true, :restart => true, :reload => true end + # Don't try and do munin monitoring of disks behind + # an Areca controller as they only allow one thing to + # talk to the controller at a time and smartd will + # throw errors if it clashes with munin + disks = disks.reject { |disk| disk[:driver] == "areca" } + disks.each do |disk| munin_plugin "smart_#{disk[:munin]}" do target "smart_"