{"id":21470100,"url":"https://github.com/sensu-plugins/sensu-plugins-sensu","last_synced_at":"2025-07-15T07:30:56.130Z","repository":{"id":27375071,"uuid":"30850694","full_name":"sensu-plugins/sensu-plugins-sensu","owner":"sensu-plugins","description":"This plugin provides monitoring and metrics for Sensu.","archived":false,"fork":false,"pushed_at":"2021-04-28T21:40:15.000Z","size":146,"stargazers_count":12,"open_issues_count":15,"forks_count":34,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-04-23T23:36:23.935Z","etag":null,"topics":["auto-remediation","metrics","sensu-handler","sensu-plugins","sensu-plugins-sensu"],"latest_commit_sha":null,"homepage":"http://sensu-plugins.io","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sensu-plugins.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-16T02:25:20.000Z","updated_at":"2024-04-06T16:28:07.000Z","dependencies_parsed_at":"2022-08-31T17:22:41.388Z","dependency_job_id":null,"html_url":"https://github.com/sensu-plugins/sensu-plugins-sensu","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensu-plugins%2Fsensu-plugins-sensu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensu-plugins%2Fsensu-plugins-sensu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensu-plugins%2Fsensu-plugins-sensu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensu-plugins%2Fsensu-plugins-sensu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sensu-plugins","download_url":"https://codeload.github.com/sensu-plugins/sensu-plugins-sensu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226024702,"owners_count":17561695,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auto-remediation","metrics","sensu-handler","sensu-plugins","sensu-plugins-sensu"],"created_at":"2024-11-23T09:23:12.128Z","updated_at":"2024-11-23T09:23:12.743Z","avatar_url":"https://github.com/sensu-plugins.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Sensu-Plugins-sensu\n\n[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-sensu.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-sensu)\n[![Gem Version](https://badge.fury.io/rb/sensu-plugins-sensu.svg)](http://badge.fury.io/rb/sensu-plugins-sensu)\n[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-sensu/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-sensu)\n[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-sensu/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-sensu)\n[![Community Slack](https://slack.sensu.io/badge.svg)](https://slack.sensu.io/badge)\n\n## Functionality\n\n## Files\n * bin/check-aggregate.rb\n * bin/check-stale-results.rb\n * bin/metrics-aggregate.rb\n * bin/metrics-delete-expired-stashes.rb\n * bin/metrics-events.rb\n * bin/handler-sensu.rb\n * bin/handler-sensu-deregister.rb\n * bin/handler-purge-stale-results.rb\n\n## Usage\n\n### check-stale-results.rb\n\nA 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.\n\nThe plugin accepts the following command line options:\n\n```\nUsage: check-stale-results.rb (options)\n    -c, --crit \u003cCOUNT\u003e               Critical if number of stale check results exceeds COUNT\n    -s, --stale \u003cTIME\u003e               Elapsed time to consider a check result result (default: 1d)\n    -v, --verbose                    Be verbose\n    -w, --warn \u003cCOUNT\u003e               Warn if number of stale check results exceeds COUNT (default: 1)\n```\n\nthe --stale command line option accepts elapsed times formatted as documented in https://github.com/hpoydar/chronic_duration.\n\nThe handler accepts the following command line options:\n\n### handler-purge-stale-results.rb\n\nA sensu handler to purge stale check results. This handler can be invoked from a check that uses the the `check-stale-results` plugin.\n\n```\nUsage: handler-purge-stale-results.rb (options)\n        --mail-recipient \u003cADDRESS\u003e   Mail recipient (required)\n        --mail-sender \u003cADDRESS\u003e      Mail sender (default: sensu@localhost)\n        --mail-server \u003cHOST\u003e         Mail server (default: localhost)\n    -s, --stale \u003cTIME\u003e               Elapsed time after which a stale check result will be deleted (default: 7d)\n```\n\nthe --stale command line option accepts elapsed times formatted as documented in https://github.com/hpoydar/chronic_duration.\n\n## Installation\n\n[Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)\n\n## Notes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensu-plugins%2Fsensu-plugins-sensu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsensu-plugins%2Fsensu-plugins-sensu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensu-plugins%2Fsensu-plugins-sensu/lists"}