+if sensors_volt
+ munin_plugin "sensors_volt" do
+ target "sensors_"
+ conf "sensors_volt.erb"
+ end
+else
+ munin_plugin "sensors_volt" do
+ action :delete
+ end
+end
+
+node[:block_device].each do |name, attributes|
+ if attributes[:vendor] == "ATA"
+ munin_plugin "smart_#{name}" do
+ target "smart_"
+ conf "smart.erb"
+ conf_variables :disk => name