Select Supported Platforms

Select Supported Architectures

Select Tier

Github Name


v3.0.1-jef.1 · public · Published 3 months ago

README
Asset Definition
Release Notes
Release Assets

Sensu-Plugins-puppet

Sensu Bonsai Asset
Build Status
Gem Version
Code Climate
Test Coverage
Dependency Status

Functionality

check-puppet-last-run.rb

Validates Puppet last run. Alerts if last Puppet run was later than threshold or it has errors

Usage: ./bin/check-puppet-last-run.rb (options)
    -a, --agent-disabled-file PATH   Path to agent disabled lock file
    -c, --crit-age SECONDS           Age in seconds to be a critical
    -C, --crit-age-disabled SECONDS  Age in seconds to crit when agent is disabled
    -d, --disabled-age-limits        Consider disabled age limits, otherwise use main limits
    -i, --ignore-failures            Ignore Puppet failures
    -r, --report-restart-failures    Raise alerts if restart failures have happened
    -s, --summary-file PATH          Location of last_run_summary.yaml file
    -w, --warn-age SECONDS           Age in seconds to be a warning
    -W, --warn-age-disabled SECONDS  Age in seconds to warn when agent is disabled

check-puppet-last-run-report.rb

Validates Puppet last run report. Alerts if last Puppet run was later than threshold or it has errors

Usage: ./bin/check-puppet-last-run-report.rb (options)
    -a, --agent-disabled-file PATH   Path to agent disabled lock file
    -c, --crit-age SECONDS           Age in seconds to be a critical
    -C, --crit-age-disabled SECONDS  Age in seconds to crit when agent is disabled
    -d, --disabled-age-limits        Consider disabled age limits, otherwise use main limits
    -i, --ignore-failures            Ignore Puppet failures
    -r, --report-restart-failures    Raise alerts if restart failures have happened
    -f, --report-file PATH           Location of last_run_report.yaml file
    -w, --warn-age SECONDS           Age in seconds to be a warning
    -W, --warn-age-disabled SECONDS  Age in seconds to warn when agent is disabled

check-puppet-errors.rb

Validates only Puppet run errors regardless of the execution time

Usage: ./bin/check-puppet-errors.rb (options)
    -a, --agent-disabled-file PATH   Path to agent disabled lock file
    -s, --summary-file PATH          Location of last_run_summary.yaml file

metrics-puppet-run.rb

Provides metrics from Puppet last run in graphite format.

Usage: ./bin/metrics-puppet-run.rb (options)
    -s, --scheme SCHEME              Metric naming scheme
    -p, --summary-file PATH          Location of last_run_summary.yaml file

Files

  • /bin/checkpuppet-last-run.rb
  • /bin/metrics-puppet-run.rb
  • /bin/check-puppet-errors.rb

Installation Options

Asset registration

Assets 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:

sensuctl asset add sensu-plugins/sensu-plugins-puppet

If you're using an earlier version of sensuctl, you can download the asset definition from this project's Bonsai Asset Index page.

Gem Installation

Installation and Setup

Notes

As 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.

Are you sure you want to report this asset?

Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.

×

You must be signed in to report this asset.

Sign In with Github

Download

×

Either download the source code:

Download Source

Or download the asset definition: