Comments (2)
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.
from sensu-plugins-logs.
We need to remove the constant and make this an option that the user can control. I have commented this on the PR.
from sensu-plugins-logs.
Related Issues (20)
- A flag to ignore traversing a log file on initial read HOT 5
- Feature request: Inlude maching lines in output in `check-journal.rb` HOT 2
- I don't understand what the `--crit` and `--warn` flags are supposed to do HOT 7
- Documentation lacking HOT 3
- Why is the file in /var/cache being truncated ? How will check-log do pattern search on a empty file HOT 2
- New release and new gem HOT 2
- Support in log entries with multiple lines HOT 1
- invalid byte sequence in UTF-8, check-log.rb:226:in match HOT 1
- Large output returned from the plugin causing sensu server to hang HOT 6
- Release 0.0.3 HOT 1
- No File option HOT 2
- Update README
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files
- Dependabot can't resolve your Ruby dependency files HOT 1
- Feature Request: Include flag for Context in Check_log.rb
- Compatibility with CentOS? HOT 2
- check-journal.rb lauch journalctl with embeded library
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sensu-plugins-logs.