## 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