Code Monkey home page Code Monkey logo

sensu-report's Introduction

sensu-report

Build Status

Prints a human readable output of the failing Sensu checks into your terminal. Queries the Sensu API and formats it into pretty colors. Basically a text based report of the sensu dashboard, on a particular client. (by default, the local hostmame)

Examples

./sensu-report --server localhost

Failed Sensu checks on this host:
 �[91mCrit: (6 hours ago) apt-get_update: �[0mHit http://archive.ubuntu.com precise-...
 �[91mCrit: (3 hours ago) check-ping-leb2.xkyle.com: �[0mPING CRITICAL - Packet loss...
 �[91mCrit: (3 hours ago) check-ping-remina.gateway.2wire.net: �[0mCRITICAL - Networ...

Put it in Puppet for MOTDs

file { '/usr/bin/sensu_report':
  mode   => '0555',
  source => 'puppet:///files/sensu/sensu_report',
} ->
cron { 'sensu_report':
  command => "/usr/bin/sensu_report -s $sensu_api_server > /etc/motd",
  minute  => fqdn_rand(60),
} ->
sensu::check { "sensu_report":
  handlers    => 'default',
  command     => '/usr/lib/nagios/plugins/check_file_age -w 7200 -c 21600 -f /etc/motd',
  subscribers => 'sensu-test'
}

Support

Open an issue or fork and open a Pull Request

sensu-report's People

Contributors

solarkennedy avatar pauloconnor avatar

Watchers

 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.