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

"Unable to read" error for mount point #37

Open
grgizem opened this issue May 27, 2016 · 2 comments
Open

"Unable to read" error for mount point #37

grgizem opened this issue May 27, 2016 · 2 comments

Comments

@grgizem
Copy link

grgizem commented May 27, 2016

check-disk-usage.rb fails on ext4 mount point,

CheckDisk WARNING: /data Unable to read.

@eheydrick
Copy link
Contributor

That means sys-filesystem is unable to stat the filesystem. Can you run stat -f /data as the user the sensu check runs as (probably the sensu user) and see if it can successfully stat the filesystem. If that works run this simple test of sys-filesystem using the ruby you are executing the check with:

#!/usr/bin/env ruby

require 'sys/filesystem'
include Sys

stat = Filesystem.stat("/data")
puts "Bytes Free: " + stat.bytes_free.to_s

If that works then something else is going on.

@grgizem
Copy link
Author

grgizem commented Jul 21, 2016

unfortunately, no problem on running this test with sensu user

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

3 participants