bin/metrics-ceph-osd.rb in sensu-plugins-ceph-0.0.4 vs bin/metrics-ceph-osd.rb in sensu-plugins-ceph-0.0.5

- old
+ new

@@ -66,12 +66,12 @@ output "#{config[:scheme]}.#{leader}.#{key}", val end end end - def run # rubocop:disable all + def run # #YELLOW - Dir.glob(config[:pattern]).each do |socket| # rubocop:disable Style/Next + Dir.glob(config[:pattern]).each do |socket| data = `ceph --admin-daemon #{socket} perf dump` if $CHILD_STATUS.exitstatus == 0 # Left side of wildcard strip1 = config[:pattern].match(/^.*\*/).to_s.gsub(/\*/, '') # Right side of wildcard