An open API service indexing awesome lists of open source software.

https://github.com/sensu-plugins/sensu-plugins-sensu

This plugin provides monitoring and metrics for Sensu.
https://github.com/sensu-plugins/sensu-plugins-sensu

auto-remediation metrics sensu-handler sensu-plugins sensu-plugins-sensu

Last synced: 7 months ago
JSON representation

This plugin provides monitoring and metrics for Sensu.

Awesome Lists containing this project

README

        

## Sensu-Plugins-sensu

[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-sensu.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-sensu)
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-sensu.svg)](http://badge.fury.io/rb/sensu-plugins-sensu)
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-sensu/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-sensu)
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-sensu/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-sensu)
[![Community Slack](https://slack.sensu.io/badge.svg)](https://slack.sensu.io/badge)

## 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 Critical if number of stale check results exceeds COUNT
-s, --stale

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

Mail recipient (required)
--mail-sender
Mail sender (default: sensu@localhost)
--mail-server Mail server (default: localhost)
-s, --stale