bin/metrics-disk-capacity.rb in sensu-plugins-disk-checks-2.5.1 vs bin/metrics-disk-capacity.rb in sensu-plugins-disk-checks-3.0.0
- old
+ new
@@ -1,7 +1,6 @@
#! /usr/bin/env ruby
-# encoding: UTF-8
#
# disk-capacity-metrics
#
# DESCRIPTION:
# This plugin uses df to collect disk capacity metrics
@@ -76,11 +75,11 @@
children.each do |child, value|
output [config[:scheme], parent, child].join('.'), value, timestamp
end
end
end
- rescue
+ rescue StandardError
unknown "malformed line from df: #{line}"
end
end
# Get inode capacity metrics
@@ -102,10 +101,10 @@
children.each do |child, value|
output [config[:scheme], parent, child].join('.'), value, timestamp
end
end
end
- rescue
+ rescue StandardError
unknown "malformed line from df: #{line}"
end
end
ok
end