lib/riemann/babbler/plugins/cpufan.rb in riemann-babbler-1.0.7.9 vs lib/riemann/babbler/plugins/cpufan.rb in riemann-babbler-1.0.8

- old
+ new

@@ -1,6 +1,6 @@ -class Riemann::Babbler::Cpufan < Riemann::Babbler +class Riemann::Babbler::CpuFan < Riemann::Babbler def init plugin.set_default(:service, 'cpufan') plugin.set_default(:cmd, '/usr/bin/sensors | grep "CPU FAN Speed:" | awk "{print $4}"') plugin.set_default(:interval, 60) @@ -11,9 +11,9 @@ def run_plugin File.exists? '/usr/bin/sensors' end def collect - { :service => plugin.service, :metric => shell(plugin.cmd).to_i, :description => "CPU Fan Speed" } + { :service => plugin.service, :metric => shell(plugin.cmd).to_i, :description => 'CPU Fan Speed'} end end