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.
- Host: GitHub
- URL: https://github.com/sensu-plugins/sensu-plugins-sensu
- Owner: sensu-plugins
- License: mit
- Created: 2015-02-16T02:25:20.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-04-28T21:40:15.000Z (about 4 years ago)
- Last Synced: 2024-04-23T23:36:23.935Z (about 1 year ago)
- Topics: auto-remediation, metrics, sensu-handler, sensu-plugins, sensu-plugins-sensu
- Language: Ruby
- Homepage: http://sensu-plugins.io
- Size: 143 KB
- Stars: 12
- Watchers: 10
- Forks: 34
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
## Sensu-Plugins-sensu
[](https://travis-ci.org/sensu-plugins/sensu-plugins-sensu)
[](http://badge.fury.io/rb/sensu-plugins-sensu)
[](https://codeclimate.com/github/sensu-plugins/sensu-plugins-sensu)
[](https://codeclimate.com/github/sensu-plugins/sensu-plugins-sensu)
[](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, --stalethe --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.
```
Mail recipient (required)
Usage: handler-purge-stale-results.rb (options)
--mail-recipient
--mail-sender Mail sender (default: sensu@localhost)
--mail-server Mail server (default: localhost)
-s, --stale