{"id":14994538,"url":"https://github.com/sensu-plugins/sensu-plugins-puppet","last_synced_at":"2025-10-30T04:31:26.570Z","repository":{"id":31684461,"uuid":"35250037","full_name":"sensu-plugins/sensu-plugins-puppet","owner":"sensu-plugins","description":"This plugin provides native Puppet instrumentation for monitoring and collecting metrics from Puppet runs.","archived":false,"fork":false,"pushed_at":"2022-02-28T22:09:57.000Z","size":73,"stargazers_count":3,"open_issues_count":4,"forks_count":26,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-02T06:31:35.264Z","etag":null,"topics":["metrics","puppet","sensu-plugins"],"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-05-08T00:20:25.000Z","updated_at":"2022-02-28T21:43:14.000Z","dependencies_parsed_at":"2022-08-21T01:20:53.158Z","dependency_job_id":null,"html_url":"https://github.com/sensu-plugins/sensu-plugins-puppet","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensu-plugins%2Fsensu-plugins-puppet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensu-plugins%2Fsensu-plugins-puppet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensu-plugins%2Fsensu-plugins-puppet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensu-plugins%2Fsensu-plugins-puppet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sensu-plugins","download_url":"https://codeload.github.com/sensu-plugins/sensu-plugins-puppet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238934083,"owners_count":19554788,"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":["metrics","puppet","sensu-plugins"],"created_at":"2024-09-24T16:03:47.508Z","updated_at":"2025-10-30T04:31:21.278Z","avatar_url":"https://github.com/sensu-plugins.png","language":"Ruby","readme":"## Sensu-Plugins-puppet\n\n[![Sensu Bonsai Asset](https://img.shields.io/badge/Bonsai-Download%20Me-brightgreen.svg?colorB=89C967\u0026logo=sensu)](https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-puppet)\n[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-puppet.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-puppet)\n[![Gem Version](https://badge.fury.io/rb/sensu-plugins-puppet.svg)](http://badge.fury.io/rb/sensu-plugins-puppet)\n[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-puppet/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-puppet)\n[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-puppet/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-puppet)\n[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-puppet.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-puppet)\n\n## Functionality\n\n### check-puppet-last-run.rb\nValidates Puppet last run. Alerts if last Puppet run was later than threshold or it has errors\n\n```\nUsage: ./bin/check-puppet-last-run.rb (options)\n    -a, --agent-disabled-file PATH   Path to agent disabled lock file\n    -c, --crit-age SECONDS           Age in seconds to be a critical\n    -C, --crit-age-disabled SECONDS  Age in seconds to crit when agent is disabled\n    -d, --disabled-age-limits        Consider disabled age limits, otherwise use main limits\n    -i, --ignore-failures            Ignore Puppet failures\n    -r, --report-restart-failures    Raise alerts if restart failures have happened\n    -s, --summary-file PATH          Location of last_run_summary.yaml file\n    -w, --warn-age SECONDS           Age in seconds to be a warning\n    -W, --warn-age-disabled SECONDS  Age in seconds to warn when agent is disabled\n\n```\n\n### check-puppet-last-run-report.rb\nValidates Puppet last run report. Alerts if last Puppet run was later than threshold or it has errors\n\n```\nUsage: ./bin/check-puppet-last-run-report.rb (options)\n    -a, --agent-disabled-file PATH   Path to agent disabled lock file\n    -c, --crit-age SECONDS           Age in seconds to be a critical\n    -C, --crit-age-disabled SECONDS  Age in seconds to crit when agent is disabled\n    -d, --disabled-age-limits        Consider disabled age limits, otherwise use main limits\n    -i, --ignore-failures            Ignore Puppet failures\n    -r, --report-restart-failures    Raise alerts if restart failures have happened\n    -f, --report-file PATH           Location of last_run_report.yaml file\n    -w, --warn-age SECONDS           Age in seconds to be a warning\n    -W, --warn-age-disabled SECONDS  Age in seconds to warn when agent is disabled\n\n```\n\n### check-puppet-errors.rb\nValidates only Puppet run errors regardless of the execution time\n\n```\nUsage: ./bin/check-puppet-errors.rb (options)\n    -a, --agent-disabled-file PATH   Path to agent disabled lock file\n    -s, --summary-file PATH          Location of last_run_summary.yaml file\n```\n\n### metrics-puppet-run.rb\nProvides metrics from Puppet last run in graphite format. \n\n```\nUsage: ./bin/metrics-puppet-run.rb (options)\n    -s, --scheme SCHEME              Metric naming scheme\n    -p, --summary-file PATH          Location of last_run_summary.yaml file\n```\n\n## Files\n\n* /bin/checkpuppet-last-run.rb\n* /bin/metrics-puppet-run.rb\n* /bin/check-puppet-errors.rb\n\n\n## Installation Options\n### Asset registration\n\nAssets are the best way to make use of this plugin in Sensu Go. If you're not using an asset, please consider doing so! If you're using sensuctl 5.13 or later, you can use the following command to add the latest version of this asset: \n\n`sensuctl asset add sensu-plugins/sensu-plugins-puppet`\n\nIf you're using an earlier version of sensuctl, you can download the asset definition from [this project's Bonsai Asset Index page](https://bonsai.sensu.io/assets/sensu-plugins/sensu-plugins-puupet).\n\n\n### Gem Installation\n\n[Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)\n\n## Notes\n\nAs the sensu user doesn't have read access to `/opt/puppetlabs/puppet/cache/state/last_run_summary.yaml` it is necessary to create an appropriate entry in `/etc/sudoers.d` and call `check-puppet-last-run.rb` or `metrics-puppet-run.rb` using `sudo`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensu-plugins%2Fsensu-plugins-puppet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsensu-plugins%2Fsensu-plugins-puppet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensu-plugins%2Fsensu-plugins-puppet/lists"}