Coder Social home page Coder Social logo

ledbetter's Introduction

Ledbetter

Ledbetter is a simple script for gathering Nagios problem statistics and submitting them to Graphite. It focuses on summary (overall, servicegroup and hostgroup) statistics and writes them to the nagios.problems metrics namespace within Graphite.

Installation

Clone the GitHub repository and use Bundler to install the gem dependencies.

$ git clone https://github.com/github/ledbetter.git
$ cd ledbetter
$ bundle install

Usage

Ledbetter requires a number of environment variables for runtime configuration. The following example demonstrates how to run it manually from the command line, but you would typically run it as a cron job.

$ export NAGIOS_URL=http://nagios.foo.com/cgi-bin/nagios3
$ export NAGIOS_USER=foo
$ export NAGIOS_PASS=bar
$ export CARBON_URL=carbon://localhost:2003
$ bundle exec ruby ledbetter.rb

Optionally you can set DEBUG=1 to also print statistics to stdout. CARBON_PREFIX can also be set to override the default namespace (nagios.problems).

$ DEBUG=1 bundle exec ruby ledbetter.rb
nagios.problems.all 41 1359170720
nagios.problems.critical 27 1359170720
nagios.problems.warning 12 1359170720
nagios.problems.unknown 2 1359170720
nagios.problems.servicegroups.apache 0 1359170720
nagios.problems.servicegroups.backups 3 1359170720
nagios.problems.servicegroups.dns 0 1359170720
nagios.problems.servicegroups.mysql 1 1359170720
...

License

Ledbetter is distributed under the MIT license.

ledbetter's People

Contributors

obfuscurity avatar kovyrin avatar pengwynn avatar

Stargazers

Doruk Sarp Aydın avatar Ayanwoye  Gideon Ayandele avatar Klaus BONOU-SELEGBE avatar Kennedy Lodonu avatar Jason Scott Heise   avatar Ayush Mishra avatar Melanie avatar Kevin Hatfield avatar Joel Colucci avatar  avatar jerius avatar Max Lawton avatar Bob Patterson Jr avatar  avatar Juri Grabowski avatar Sean Hagen avatar Devin Davis avatar Eduardo Casarero avatar German Gutierrez avatar Pantelis Koukousoulas avatar Elifarley C. avatar  avatar Suriyaa Sundararuban avatar John Long avatar Sam avatar Mordy Ovits avatar Mathias Bartmann avatar Toby Jackson avatar huhongbo avatar Ian Flournoy avatar  avatar Thomas Merkel avatar Roger López avatar Darren Foo avatar

Watchers

PJ Hyett avatar Jesse Newland avatar Ani Betts avatar Mike Skalnik avatar Ryan Waldron avatar Petros Amoiridis avatar Dietrich Featherston avatar Hailey Somerville avatar Chris Lundquist avatar Cronix avatar Shawn Davenport avatar Brendan Forster avatar Robert Sese avatar James Cloos avatar Tony Jaramillo avatar Juri Grabowski avatar Vlado Herman avatar kelly stirman avatar  avatar Lorena Mesa avatar  avatar  avatar  avatar Fred Jennings avatar Katelyn Bryant avatar Catherine King avatar Script Media LA avatar Bastiaan Hendriks avatar Stephen James avatar Koji Nobuhara avatar  avatar Shota Sando 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.