/sensu-plugins-puppet

This plugin provides native Puppet instrumentation for monitoring and collecting metrics from Puppet runs.

Primary LanguageRubyMIT LicenseMIT

Sensu-Plugins-puppet

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

check-puppet-errors.rb

Validates only Puppet run errors regardless of the execution time

Files

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

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.