Sha256: 653e37598bd5b0362d80819227274ac5fc404ce79cd96bd375e88aeac8ba7052

Contents?: true

Size: 892 Bytes

Versions: 3

Compression:

Stored size: 892 Bytes

Contents

#!/usr/bin/ruby

#License: (MIT), Copyright (C) 2013 Author Phil Chen, Contributor Ruben Espinosa

require 'usagewatch'

usw =  Usagewatch

puts "#{usw.uw_diskused} Gigabytes Used"
puts "#{usw.uw_diskused_perc} Perventage of Gigabytes Used"
puts "#{usw.uw_cpuused}% CPU Used"
puts "#{usw.uw_tcpused} TCP Connections Used"
puts "#{usw.uw_udpused} UDP Connections Used"
puts "#{usw.uw_memused}% Active Memory Used"
puts "#{usw.uw_load} Average System Load Of The Past Minute"
puts "#{usw.uw_bandrx} Mbit/s Current Bandwidth Received"
puts "#{usw.uw_bandtx} Mbit/s Current Bandwidth Transmitted"
puts "#{usw.uw_diskioreads}/s Current Disk Reads Completed"
puts "#{usw.uw_diskiowrites}/s Current Disk Writes Completed"
puts "Top Ten Processes By CPU Consumption: #{usw.uw_cputop}"
puts "Top Ten Processes By Memory Consumption: #{usw.uw_memtop}"
puts "#{usw.uw_httpconns} Connections in 80 Port"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
usagewatch_ext-0.2.0 examples/linux_example.rb
usagewatch_ext-0.1.0 examples/linux_example.rb
usagewatch_ext-0.0.4.pre1 examples/linux_example.rb