Code Monkey home page Code Monkey logo

nagios-apache-scoreboard's Introduction

nagios-apache-scoreboard

Every man and his dog has written a Nagios Apache monitor that scrapes the mod_status "/server-status/" URL to tell you how many workers are in use or idle. However all of these suffer the same problem; because you're using a TCP connection when Apache runs out of connections, (because your application is bricked waiting for database connections, etc.) your monitoring breaks/times out, etc. rather than say all of your workers are busy.

An alternative idea is to monitor Apache "out-of-band" using the scoreboard directly.

All you need is something like the following in your httpd.conf:

    ScoreboardFile /var/run/httpd/httpd.scoreboard

You don't need to have mod_status enabled for this to work. Then run the monitor like so:

    # ./check_apache -w 100 -c 200 /var/run/httpd/httpd.scoreboard
    WARNING: 150 workers in use

-w and -c refer to the warning and critical thresholds for the number of workers in use.

nagios-apache-scoreboard's People

Contributors

bodgit avatar kringalf avatar

Watchers

 avatar James Cloos avatar

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.