Sha256: 4440c062c04bd6eaaeaa5ac8932271211b6f497344926bb7fff30ff02343c139
Contents?: true
Size: 248 Bytes
Versions: 3
Compression:
Stored size: 248 Bytes
Contents
interval 60 always_start true collect :os => "linux" do event( :metric => File.read('/proc/uptime').split(' ').first.to_f ) end collect :os => "darwin" do event( :metric => shell('uptime | cut -d":" -f4- | sed s/,//g').to_f ) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kurchatov-0.0.2 | examples/uptime.rb |
kurchatov-0.0.2b | examples/uptime.rb |
kurchatov-0.0.1 | examples/uptime.rb |