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

Exclude read-only filesystems from check-disk-usage.rb #113

Open DrMurx opened 5 years ago

DrMurx commented 5 years ago

check-disk-usage.rb usually checks all mounted filesystems unless specific ignore/include options are given. However, it doesn't make a lot of sense to check read-only filesystems. My PR #112 addresses this with a new option --ignore-readonly.

However, I'd strongly vote for a breaking change and ignore read-only filesystems by default unless a new parameter --include-readonly is given or such a filesystem's mountpoint is explicitly specified in the -I (:includemnt) option.