Git Product home page Git Product logo

Comments (2)

lausser avatar lausser commented on August 17, 2024

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.

NicolaiSoeborg avatar NicolaiSoeborg commented on August 17, 2024

Also note that you can use options => 'sticky=3600' to keep the alert for 1 hour.

from check_logfiles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.