-
Notifications
You must be signed in to change notification settings - Fork 63
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 plugin failing #31
Comments
OS is Oracle Linux |
tried to install gem sys-filesystem and still didnt help /opt/sensu/embedded/bin/ruby check-disk-usage.rb |
+1 |
1 similar comment
+1 |
@willneumob @axos88 which OS are you seeing this on? |
This is freshly-installed Ubuntu 14.04.3 LTS with ruby and ruby-dev 1.9.1, after a |
@willneumob sorry, no idea, that was two months ago. I moved over to the old community plugin. |
I will try to repro this. It's working for me on Ubuntu 14.04 using the Sensu embedded Ruby 2.3. |
I am facing the same issue as posted by @sputturao Can anyone help me to get out of this? |
Hi all, I have exactly same problem mentioned by @immusk did you have any luck on finding a solution? I've tried with require_relative (in the .rb), giving permissions to execute and other things, without success. Thanks in advance if you can help me or post some used resolutions. |
I was facing the same issue and here is my solution.
and you will get something like this
you need to install the gem in the INSTALLATION DIRECTORY and not the USER INSTALLATION DIRECTORY. if you are using ansible to install the gem set user_install=no
|
Is this still an issue? |
This is solved when you specify the path of the disk to check. |
My apologies for adding to this closed issue, but the above did not help and hopefully this can help others. Resolved issue by downloading sys-filesystem gem and its runtime dependency (ffi-1.9.18.gem) into following location: /opt/sensu/embedded/lib/ruby/gems/2.3.0. Ran commands below as sensu user: Checked /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems and gems are present. Now this plugin works for me. |
I just did a release: #70 can someone try it and see if the issue is resolved, if not I will start taking a look at this issue. |
getting these failures randomly after upgrading to 2.1.0... "Check failed to run: Permission denied - setmntent, [""/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sys-filesystem-1.1.7/lib/sys/unix/sys/filesystem.rb:301:in |
@tkaczerski sorry to hear, can you give me your full command being run? |
/opt/sensu/embedded/bin/check-disk-usage.rb -w 86 -c 93 The issue could be: |
All issues resolved after upgrading glibc. |
@tkaczerski thanks I get a 404 so I'm guessing its a private repo. Could you submit a pr to document the requirements? |
Tried to use the check-disk-usage plugin and fails.
[root@iabc123def plugins]# /opt/sensu/embedded/bin/ruby check-disk-usage.rb
'Sensu::Plugin::CLI: ["Not implemented! You should override Sensu::Plugin::CLI#run."]
/opt/sensu/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in
require': cannot load such file -- sys/filesystem (LoadError) from /opt/sensu/embedded/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in
require'from check-disk-usage.rb:29:in `
Before using this plugin, we used to use the old community plugin and that worked without any issue.
Old Plugin: https://github.com/sensu/sensu-community-plugins/blob/master/plugins/system/check-disk.rb
[root@iabc123def plugins]# /opt/sensu/embedded/bin/ruby check-disk.rb
CheckDisk OK: All disk usage under 85% and inode usage under 85%
The text was updated successfully, but these errors were encountered: