Comments (2)
Hi,
someone blogged about check_logfiles in France? Ten minutes after your mail i got the same question from another french guy
When you run check_logfiles, it looks where it sopped last time (end-of-file last time) and then reads from this position tot he new end-of-file. Then it saves the end-of-file position again in a so-called seek-file (in /var/tmp/check_logfiles or $OMD_ROOT/var/tmp/check_logfiles if you use OMD).
This way, check_logfiles scans only the lines which were appended tot he logfile since the last run. You cannot repeat this by subsequently calling check_logfiles.
In the service-definition you write:
max_check_attempts 1
is_volatile 1
check_period 5
Now you get an alert whenever in the last 5 minutes there was an error message.
Gerhard
from check_logfiles.
Also note that you can use options => 'sticky=3600'
to keep the alert for 1 hour.
from check_logfiles.
Related Issues (20)
- logfilemissing=critical only working in commandline not in config
- configure file is missing HOT 3
- second critical pattern doesn't worked HOT 7
- CL_CAPTURE_GROUPx not present in $ENV HOT 3
- How to make check_logfiles not delete an alert? HOT 1
- check_logfiles on /var/log/message resulting in frequent socket timeouts HOT 1
- Feature request: Indicate the user who should execute the search, by parameters
- specific options for one search pattern
- thresholdexpiry HOT 1
- seekfiles ignored after server reboot HOT 6
- "Buy me a coffee" link does not work
- Multiple line output
- Critical pattern found but plugin exits OK HOT 1
- nosavethreshold from cmd line
- Scripts not working as expected? HOT 2
- "winwarncrit" option causes Windows eventlog messages to be prefixed with "EE_(EE|WW)_TT"
- Please add newer tags to your repository HOT 1
- Some tests in test suite do fail HOT 2
- Test suite tests not always reproducible
- Docker example
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 check_logfiles.