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

protect Filesystem.mounts retrieval from failing and exit critical #88

Closed exeral closed 6 years ago

exeral commented 6 years ago

Pull Request Checklist

https://github.com/sensu-plugins/sensu-plugins-disk-checks/issues/65

General

if Filesystem.mounts fails: Permission denied - setmntent the checks exits critical

this PR enclose the call in begin/rescue to exit unknown instead of critical when the call fails to retrieve mountpoints.

majormoses commented 6 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.

majormoses commented 6 years ago

released: https://rubygems.org/gems/sensu-plugins-disk-checks/versions/2.5.1