Ruby
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github prep for 2.0.1 release Jan 23, 2018
bin Multiple Updates: Jul 19, 2018
lib prep for 4.0.0 release Jul 19, 2018
test Multiple Updates: Jul 19, 2018
.gitignore initial commit Feb 17, 2015
.rubocop.yml Multiple Updates: Jul 19, 2018
.travis.yml Multiple Updates: Jul 19, 2018
CHANGELOG.md prep for 4.0.0 release Jul 19, 2018
CONTRIBUTING.md deploy Aug 27, 2015
Gemfile Multiple Updates: Jul 19, 2018
LICENSE Sync repo May 17, 2015
README.md Multiple Updates: Jul 19, 2018
Rakefile Multiple Updates: Jul 19, 2018
sensu-plugins-sensu.gemspec Multiple Updates: Jul 19, 2018

README.md

Sensu-Plugins-sensu

Build Status Gem Version Code Climate Test Coverage Community Slack

Functionality

Files

  • bin/check-aggregate.rb
  • bin/check-stale-results.rb
  • bin/metrics-aggregate.rb
  • bin/metrics-delete-expired-stashes.rb
  • bin/metrics-events.rb
  • bin/handler-sensu.rb
  • bin/handler-sensu-deregister.rb
  • bin/handler-purge-stale-results.rb

Usage

check-stale-results.rb

A sensu plugin to monitor sensu stale check results. You can then implement an handler that purges the results after X days using the handlers-purge-stale-results handler.

The plugin accepts the following command line options:

Usage: check-stale-results.rb (options)
    -c, --crit <COUNT>               Critical if number of stale check results exceeds COUNT
    -s, --stale <TIME>               Elapsed time to consider a check result result (default: 1d)
    -v, --verbose                    Be verbose
    -w, --warn <COUNT>               Warn if number of stale check results exceeds COUNT (default: 1)

the --stale command line option accepts elapsed times formatted as documented in https://github.com/hpoydar/chronic_duration.

The handler accepts the following command line options:

handler-purge-stale-results.rb

A sensu handler to purge stale check results. This handler can be invoked from a check that uses the the check-stale-results plugin.

Usage: handler-purge-stale-results.rb (options)
        --mail-recipient <ADDRESS>   Mail recipient (required)
        --mail-sender <ADDRESS>      Mail sender (default: sensu@localhost)
        --mail-server <HOST>         Mail server (default: localhost)
    -s, --stale <TIME>               Elapsed time after which a stale check result will be deleted (default: 7d)

the --stale command line option accepts elapsed times formatted as documented in https://github.com/hpoydar/chronic_duration.

Installation

Installation and Setup

Notes