-
-munin_plugin "interrupts"
-munin_plugin "iostat"
-munin_plugin "iostat_ios"
-
-if Dir.glob("/dev/ipmi*").empty?
- munin_plugin "ipmi_fans" do
- action :delete
- end
-
- munin_plugin "ipmi_temp" do
- action :delete
- end
-else
- munin_plugin "ipmi_fans" do
- target "ipmi_"
- end
-
- munin_plugin "ipmi_temp" do
- target "ipmi_"
- end
-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"
-
-if File.exists?("/proc/net/rpc/nfs")
- munin_plugin "nfs4_client"
-else
- munin_plugin "nfs4_client" do
- action :delete
- end
-end
-
-if File.exists?("/proc/net/rpc/nfsd")
- munin_plugin "nfsd"
- munin_plugin "nfsd4"
-else
- munin_plugin "nfsd" do
- action :delete
- end
-
- munin_plugin "nfsd4" do
- action :delete
- end
-end
-
-munin_plugin "open_files"
-munin_plugin "open_inodes"
-
-munin_plugin "postfix_mailqueue" do
- action :delete
-end
-
-munin_plugin "postfix_mailvolume" do
- action :delete
-end
-
-munin_plugin "processes"
-munin_plugin "proc_pri"
-
-Dir.glob("/sys/class/hwmon/hwmon*").each do |hwmon|
- package "lm-sensors"
-
- hwmon = "#{hwmon}/device" unless File.exists?("#{hwmon}/name")
-
- if Dir.glob("#{hwmon}/fan*_input").empty?
- munin_plugin "sensors_fan" do
- action :delete
- end
- else
- munin_plugin "sensors_fan" do
- target "sensors_"
- end
- end
-
- if Dir.glob("#{hwmon}/temp*_input").empty?
- munin_plugin "sensors_temp" do
- action :delete
- end
- else
- munin_plugin "sensors_temp" do
- target "sensors_"
- end
- end
-
- if Dir.glob("#{hwmon}/in*_input").empty?
- munin_plugin "sensors_volt" do
- action :delete
- end
- else
- munin_plugin "sensors_volt" do
- target "sensors_"
- end
- end
-end
-
-# smart_
-munin_plugin "swap"
-munin_plugin "threads"
-munin_plugin "uptime"
-munin_plugin "users"
-munin_plugin "vmstat"