Class: Probe::DiskUsage

Inherits:
Probe
  • Object
show all
Defined in:
lib/pimon/probe/disk_usage.rb

Class Method Summary collapse

Methods inherited from Probe

unit

Class Method Details

.checkObject



4
5
6
# File 'lib/pimon/probe/disk_usage.rb', line 4

def self.check
  `df`.split(/\n/)[1].split(" ")[4].to_i
end

.symbolObject



8
9
10
# File 'lib/pimon/probe/disk_usage.rb', line 8

def self.symbol
  :disk
end