{"id":16830422,"url":"https://github.com/glensc/monitoring-plugin-check_chef_stale","last_synced_at":"2025-08-11T23:04:51.507Z","repository":{"id":25381116,"uuid":"28809429","full_name":"glensc/monitoring-plugin-check_chef_stale","owner":"glensc","description":"Alerting for stale nodes on Chef with Nagios/Icinga","archived":false,"fork":false,"pushed_at":"2018-05-23T09:58:39.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T08:25:09.960Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/glensc.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":"2015-01-05T11:12:53.000Z","updated_at":"2018-05-23T09:56:56.000Z","dependencies_parsed_at":"2022-08-24T04:40:44.555Z","dependency_job_id":null,"html_url":"https://github.com/glensc/monitoring-plugin-check_chef_stale","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fmonitoring-plugin-check_chef_stale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fmonitoring-plugin-check_chef_stale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fmonitoring-plugin-check_chef_stale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fmonitoring-plugin-check_chef_stale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glensc","download_url":"https://codeload.github.com/glensc/monitoring-plugin-check_chef_stale/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244121933,"owners_count":20401337,"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-10-13T11:38:53.238Z","updated_at":"2025-03-17T22:47:47.158Z","avatar_url":"https://github.com/glensc.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"check_chef_stale\n================\n\nAlerting for stale nodes on Chef with Nagios/Icinga\n\n## Installation ##\n\n1. copy plugin `check_chef_stale.rb` to `/usr/lib/nagios/plugins`\n2. copy command definition and service template definition `check_chef_stale.cfg`  to `/etc/nagios/plugins`.\n3. create check definition like this:\n```\ndefine service {\n    use                     chef_stale\n    host_name               localhost\n}       \n```\n\n**NOTE**: the paths may vary, depending on your Nagios/Icinga installation.\n\n## Known Issues ##\n\n```\nchef/http/auth_credentials.rb:40:in `signature_headers': Cannot sign the request without a client name, check that :node_name is assigned (ArgumentError)\n```\n\nensure `node_name` is defined in chef config. If you use [chef-client](https://github.com/chef-cookbooks/chef-client) cookbook, then it omits writing `node_name` to config if it's the default (`# Using default node name (fqdn)`). you can workaround this by creating `/etc/chef/client.d/nodename.rb`:\n\n```ruby\n# needed for check_chef_stale.rb\nChef::Config[:node_name] = 'nagios.fqdn.example.org'\n```\n\n----\n\n```\n[2016-02-03T13:49:00+02:00] WARN: Failed to read the private key /etc/chef/client.pem: #\u003cErrno::EACCES: Permission denied - /etc/chef/client.pem\u003e\n```\n\nensure the files are accessible by user running the checks:\n```sh\nchmod a+r /etc/chef/client.d/nodename.rb\nchown nagios /etc/chef/client.pem\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglensc%2Fmonitoring-plugin-check_chef_stale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglensc%2Fmonitoring-plugin-check_chef_stale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglensc%2Fmonitoring-plugin-check_chef_stale/lists"}