end
munin_plugin "irqstats"
-
-Dir.new("/sys/block").each do |device|
- if device.match(/^sd/)
- munin_plugin "linux_diskstat_iops_#{device}" do
- target "linux_diskstat_"
- end
-
- munin_plugin "linux_diskstat_latency_#{device}" do
- target "linux_diskstat_"
- end
-
- munin_plugin "linux_diskstat_throughput_#{device}" do
- target "linux_diskstat_"
- end
- end
-end
-
munin_plugin "load"
munin_plugin "memory"
munin_plugin "netstat"
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"