Sha256: 963dd2ceea50cd2880e9f092740d9f6414f150d8185fa14c0a501fae3b6714e8
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 Bytes
Contents
class Riemann::Babbler::Cuboxtemp < Riemann::Babbler def init plugin.set_default(:service, 'cuboxtemp') plugin.set_default(:interval, 60) plugin.set_default(:cmd, 'sensors | grep "T-junction" | awk "{print $2}"') plugin.states.set_default(:warning, 90) plugin.states.set_default(:critical, 100) end def run_plugin File.exists? '/usr/bin/sensors' end def collect { :service => plugin.service, :metric => shell(plugin.cmd).to_i, :description => "Cubox temperature" } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
riemann-babbler-1.0.5 | lib/riemann/babbler/plugins/cuboxtemp.rb |