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

Plugin copies the file to /var/cache folder and does its checking #15

Open
jsiddharth opened this issue Feb 15, 2017 · 2 comments
Open

Comments

@jsiddharth
Copy link

To get this working, I had to add sensu user to the adm group so that I can address /var/log/auth.log. But for some reason I started to get Permission Denied for /var/cache/check-log/.../var/log/auth.log. I had to give chmod 777 access (without -R) to /var/cache/check-log/.../var/log/auth.log to get it to work. Ideally adding sensu user to root group should have done the trick.

Please help me solve this issue without having to do chmod on /var/cache/check-log/.../var/log/auth.log.

@mf69
Copy link

mf69 commented Apr 28, 2017

I fixed this by changing check-log.rb line 36
BASE_DIR = '/var/cache/sensu/check-log'.freeze

This works (on ubuntu) because /var/cache/sensu is created by the sensu package install with r/w/x permissions for the sensu user, which is what the sensu-client daemon runs as.

@majormoses
Copy link
Member

We need to remove the constant and make this an option that the user can control. I have commented this on the PR.

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

4 participants