From: Tom Hughes Date: Fri, 31 May 2013 19:05:56 +0000 (+0100) Subject: Install lm-sensors when munin is doing sensor monitoring X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/288dd19ce2d0f922ee77fe782227726e68e2174b Install lm-sensors when munin is doing sensor monitoring --- diff --git a/cookbooks/munin/recipes/default.rb b/cookbooks/munin/recipes/default.rb index c3e43cdd8..2626aca4a 100644 --- a/cookbooks/munin/recipes/default.rb +++ b/cookbooks/munin/recipes/default.rb @@ -243,6 +243,8 @@ 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?