Sha256: 0c8d339f649039a4940f71b61a6f6ecef71a4646bad706b3ac738ecb63c728c9
Contents?: true
Size: 523 Bytes
Versions: 42
Compression:
Stored size: 523 Bytes
Contents
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) plugin.states.set_default(:warning, 2000) plugin.states.set_default(:critical, 3000) end def run_plugin File.exists? '/usr/bin/sensors' end def collect { :service => plugin.service, :metric => shell(plugin.cmd).to_i, :description => "CPU Fan Speed" } end end
Version data entries
42 entries across 42 versions & 1 rubygems
Version | Path |
---|---|
riemann-babbler-0.9.3 | lib/riemann/babbler/plugins/cpufan.rb |
riemann-babbler-0.9.2 | lib/riemann/babbler/plugins/cpufan.rb |