{"id":15517555,"url":"https://github.com/bodgit/apache-scoreboard-tools","last_synced_at":"2025-04-23T03:51:59.349Z","repository":{"id":6785034,"uuid":"8032254","full_name":"bodgit/apache-scoreboard-tools","owner":"bodgit","description":"Tools for checking Apache out-of-band via its scoreboard","archived":false,"fork":false,"pushed_at":"2017-08-02T15:51:51.000Z","size":7,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T21:51:07.380Z","etag":null,"topics":["apache-httpd","apache2","collectd","collectd-plugin","nagios","scoreboard"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bodgit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-05T15:55:00.000Z","updated_at":"2021-11-10T16:03:23.000Z","dependencies_parsed_at":"2022-07-21T14:02:14.775Z","dependency_job_id":null,"html_url":"https://github.com/bodgit/apache-scoreboard-tools","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/bodgit%2Fapache-scoreboard-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodgit%2Fapache-scoreboard-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodgit%2Fapache-scoreboard-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodgit%2Fapache-scoreboard-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bodgit","download_url":"https://codeload.github.com/bodgit/apache-scoreboard-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250366687,"owners_count":21418768,"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":["apache-httpd","apache2","collectd","collectd-plugin","nagios","scoreboard"],"created_at":"2024-10-02T10:13:46.368Z","updated_at":"2025-04-23T03:51:59.323Z","avatar_url":"https://github.com/bodgit.png","language":"C","readme":"apache-scoreboard-tools\n=======================\n\nEvery man and his dog has written tools to monitor Apache by scraping the\n`mod_status` _\"/server-status/\"_ URL to tell you how many workers are in use or\nidle. However all of these tools suffer the same problem; because you're using\none of the available TCP connections, when Apache happens to run out of them,\n(because your application is bricked waiting for database connections, etc.)\nyour monitoring breaks/times out, etc. rather than correctly report that all of\nyour workers are busy.\n\nAn alternative idea is to monitor Apache \"out-of-band\" using the scoreboard\ndirectly.\n\nAll you need is something like the following in your httpd.conf:\n\n        ScoreboardFile /var/run/httpd/httpd.scoreboard\n\nYou need `mod_status` enabled for this to work and also `ExtendedStatus` set to\n`on` (the default since 2.3.6) but you don't need to expose any of this with a\n`\u003cLocation\u003e` block and `SetHandler` directive.\n\nThere is a Nagios-style check you can run like so:\n\n        # ./check_apache -w 100 -c 200 /var/run/httpd/httpd.scoreboard\n        WARNING: 150 workers in use\n\n`-w` and `-c` refer to the warning and critical thresholds for the number of\nworkers _in use_.\n\nThere is also a Collectd plugin which reports the same statistics as the\nofficial plugin and can be run in one of two ways. You can run it within\nCollectd using the `exec` plugin by just passing the scoreboard:\n\n```\nLoadPlugin exec\n\n\u003cPlugin exec\u003e\n  Exec \"username\" \"/usr/sbin/collectd_apache\" \"/var/run/httpd/httpd.scoreboard\"\n\u003c/Plugin\u003e\n```\n\nOr you can run it outside of Collectd using the `unixsock` plugin by also\npassing the socket:\n\n        # /usr/sbin/collectd_apache /var/run/httpd/httpd.scoreboard /var/run/collectd-socket\n\nThe first form can work out the polling interval and hostname as these are\npassed in by Collectd as environment variables however Collectd won't run\nthings as UID 0 which you might need to be able to read the scoreboard so you\ncan end up boxing around with `sudo -E`.\n\nThe second form cannot infer the polling interval so if the defaults of a 60\nsecond polling interval and the FQDN of the host aren't desired then there are\n`-i` and `-h` options to adjust these as necessary.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodgit%2Fapache-scoreboard-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbodgit%2Fapache-scoreboard-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodgit%2Fapache-scoreboard-tools/lists"}