bin/check-smart-status.rb in sensu-plugins-disk-checks-2.4.1 vs bin/check-smart-status.rb in sensu-plugins-disk-checks-2.4.2

- old
+ new

@@ -293,11 +293,11 @@ device = Disk.new(name, override, ignore) output = `sudo #{config[:binary]} -i #{device.device_path}` # Check if we can use this device or not - available = !output.scan(/SMART support is:\+sAvailable/).empty? - enabled = !output.scan(/SMART support is:\+sEnabled/).empty? + available = !output.scan(/SMART support is:\s+Available/).empty? + enabled = !output.scan(/SMART support is:\s+Enabled/).empty? devices << device if available && enabled end end devices