lib/riemann/tools/health.rb in riemann-tools-1.5.0 vs lib/riemann/tools/health.rb in riemann-tools-1.6.0

- old
+ new

@@ -385,12 +385,11 @@ end end end def disk - df.split(/\n/).each do |r| + df.lines[1..].each do |r| f = r.split(/\s+/) - next if f[0] == 'Filesystem' # Calculate capacity used = f[2].to_i available = f[3].to_i total_without_reservation = used + available