{"id":15048225,"url":"https://github.com/github/ledbetter","last_synced_at":"2025-10-04T10:30:41.262Z","repository":{"id":10886471,"uuid":"13176859","full_name":"github/ledbetter","owner":"github","description":"Script that scrapes alert statistics from Nagios and reports them to Graphite","archived":true,"fork":true,"pushed_at":"2015-01-10T18:23:15.000Z","size":20240,"stargazers_count":36,"open_issues_count":0,"forks_count":16,"subscribers_count":32,"default_branch":"master","last_synced_at":"2024-09-30T00:41:29.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"obfuscurity/ledbetter","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-28T16:43:55.000Z","updated_at":"2024-07-31T03:22:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/github/ledbetter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fledbetter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fledbetter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fledbetter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fledbetter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/ledbetter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235238011,"owners_count":18958031,"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":[],"created_at":"2024-09-24T21:09:30.045Z","updated_at":"2025-10-04T10:30:40.576Z","avatar_url":"https://github.com/github.png","language":"Ruby","funding_links":[],"categories":["Nagios Monitoring"],"sub_categories":["Nagios Monitoring Addons"],"readme":"# Ledbetter\n\nLedbetter is a simple script for gathering Nagios problem statistics and submitting them to Graphite. It focuses on summary (overall, servicegroup and hostgroup) statistics and writes them to the `nagios.problems` metrics namespace within Graphite.\n\n## Installation\n\nClone the GitHub repository and use Bundler to install the gem dependencies.\n\n```\n$ git clone https://github.com/github/ledbetter.git\n$ cd ledbetter\n$ bundle install\n```\n\n## Usage\n\nLedbetter requires a number of environment variables for runtime configuration. The following example demonstrates how to run it manually from the command line, but you would typically run it as a cron job.\n\n```\n$ export NAGIOS_URL=http://nagios.foo.com/cgi-bin/nagios3\n$ export NAGIOS_USER=foo\n$ export NAGIOS_PASS=bar\n$ export CARBON_URL=carbon://localhost:2003\n$ bundle exec ruby ledbetter.rb\n```\n\nOptionally you can set `DEBUG=1` to also print statistics to `stdout`. `CARBON_PREFIX` can also be set to override the default namespace (`nagios.problems`).\n\n```\n$ DEBUG=1 bundle exec ruby ledbetter.rb\nnagios.problems.all 41 1359170720\nnagios.problems.critical 27 1359170720\nnagios.problems.warning 12 1359170720\nnagios.problems.unknown 2 1359170720\nnagios.problems.servicegroups.apache 0 1359170720\nnagios.problems.servicegroups.backups 3 1359170720\nnagios.problems.servicegroups.dns 0 1359170720\nnagios.problems.servicegroups.mysql 1 1359170720\n...\n```\n\n## License \n\nLedbetter is distributed under the MIT license.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fledbetter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Fledbetter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fledbetter/lists"}