lib/perus/pinger/metrics/hd.rb in perus-0.1.2 vs lib/perus/pinger/metrics/hd.rb in perus-0.1.3
- old
+ new
@@ -5,10 +5,10 @@
option :drive
metric!
def run
regex = "/^#{options.drive.gsub("/", "\\/")}/"
- percent = `df -h / | awk '#{regex} {print $5}'`
+ percent = shell("df -h / | awk '#{regex} {print $5}'")
{hd_used: percent.to_i}
end
end
end