]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/hardware/recipes/default.rb
Fix foodcritic warning
[chef.git] / cookbooks / hardware / recipes / default.rb
index 3169c94a9de9645b3ec426fd4aa8a095d2ca655d..6a324a36e4d30846e3ff4acb4330fe4b7f67d150 100644 (file)
@@ -411,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_"