end
end
-if %x{sysctl -n net.ipv4.ip_forward}.chomp == "1"
+if File.read("/proc/sys/net/ipv4/ip_forward").chomp == "1"
munin_plugin "fw_packets"
else
munin_plugin "fw_packets" do
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"