Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check-disk-usage.rb fails on FreeBSD #72

Open
UnitedMarsupials-zz opened this issue May 4, 2017 · 0 comments
Open

check-disk-usage.rb fails on FreeBSD #72

UnitedMarsupials-zz opened this issue May 4, 2017 · 0 comments

Comments

@UnitedMarsupials-zz
Copy link

As transpired in the course of discussing #56, the recent versions of the check-disk-usage.rb do not work on FreeBSD:

% check-disk-usage.rb 
Check failed to run: undefined method `[]' for nil:NilClass, ["/opt/lib/ruby/gems/2.2/gems/sensu-plugins-disk-checks-2.1.0/bin/check-disk-usage.rb:185:in `to_human'", "/opt/lib/ruby/gems/2.2/gems/sensu-plugins-disk-checks-2.1.0/bin/check-disk-usage.rb:173:in `check_mount'", "/opt/lib/ruby/gems/2.2/gems/sensu-plugins-disk-checks-2.1.0/bin/check-disk-usage.rb:132:in `block in fs_mounts'", "/opt/lib/ruby/gems/2.2/gems/sensu-plugins-disk-checks-2.1.0/bin/check-disk-usage.rb:121:in `each'", "/opt/lib/ruby/gems/2.2/gems/sensu-plugins-disk-checks-2.1.0/bin/check-disk-usage.rb:121:in `fs_mounts'", "/opt/lib/ruby/gems/2.2/gems/sensu-plugins-disk-checks-2.1.0/bin/check-disk-usage.rb:209:in `run'", "/opt/lib/ruby/gems/2.2/gems/sensu-plugin-1.2.0/lib/sensu-plugin/cli.rb:56:in `block in <class:CLI>'"]

(/opt is the prefix on my systems -- the usual value is /usr/local)

The last version that worked was 1.1.2. Creating this new ticket on request of @majormoses. If necessary, I can create an account on my FreeBSD system for a developer -- contact me directly with the desiredpasswdentry and ssh public key.

@majormoses majormoses added the Bug label May 4, 2017
@majormoses majormoses added Type: Bug and removed Bug labels Oct 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants