sensu-plugins / sensu-plugins-disk-checks

This plugin provides native disk instrumentation for monitoring and metrics collection, including: health, usage, and various metrics.
http://sensu-plugins.io
MIT License
27 stars 63 forks source link

fix: do not override_path when specifying device from the cli on chec… #103

Closed marcdeop closed 4 years ago

marcdeop commented 5 years ago

General

Purpose

check-smart-status.rb was using this call devices << Disk.new(dev.to_s, '', nil) which passes an empty path to @override_path thus making the check fail by checking an empty path

majormoses commented 5 years ago

Thanks for your contribution to Sensu plugins! Without people like you submitting PRs we couldn't run the project. I will review it shortly.

marcdeop commented 4 years ago

This PR is not needed anymore as bc8626b7 already covers it.