bin/riemann-health in riemann-tools-0.0.7 vs bin/riemann-health in riemann-tools-0.0.8
- old
+ new
@@ -81,10 +81,10 @@
def cpu_report
`ps -eo pcpu,pid,args | sort -nrb -k1 | head -10`.chomp
end
def disk
- `df`.split(/\n/).each do |r|
+ `df -P`.split(/\n/).each do |r|
f = r.split(/\s+/)
next unless f[0] =~ /^\//
next if f[0] == 'Filesystem'
x = f[4].to_f/100