Sha256: 4a2547f357c2c09638135dcfa6820b47a20487ecfdbd4c620233e3bd7ff8c39e

Contents?: true

Size: 926 Bytes

Versions: 5

Compression:

Stored size: 926 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

# 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

5 entries across 5 versions & 1 rubygems

Version Path
psm-ruby-stats-1.1.0 examples/linux_example.rb
psm-ruby-stats-1.0.4 examples/linux_example.rb
psm-ruby-stats-1.0.3 examples/linux_example.rb
psm-ruby-stats-1.0.2 examples/linux_example.rb
psm-ruby-stats-1.0.1 examples/linux_example.rb