sensu_check_wrapper

Wrapper for sensu::check with hiera lookups

Tomasz Tarczynski

ttarczynski

5,640 downloads

5,640 latest version

4.1 quality score

Version information

  • 0.1.0 (latest)
released Jan 23rd 2017

Start using this module

Tags: sensu

Documentation

ttarczynski/sensu_check_wrapper — version 0.1.0 Jan 23rd 2017

sensu_check_wrapper

Table of Contents

  1. Description
  2. Setup - The basics of getting started with sensu_check_wrapper
  3. Contributing - Guide for contributing to the module

Description

sensu_check_wrapper is a puppet module to create Sensu checks.

It is forked from Yelp/puppet-monitoring_check. While Yelp/puppet-monitoring_check can only be used with Yelp's sensu_handlers, this fork works with standard sensu handlers.

It wraps sensu::check and adds for convenience:

  • hiera lookups for params
  • human-readable time format
  • required runbook

Setup

Dependencies

  • puppetlabs/stdlib
  • sensu/sensu

See metadata.json for details.

Beginning with sensu_check_wrapper

sensu_check_wrapper { 'cron':
  check_every => '1m',
  alert       => true,
  runbook     => 'http://lmgtfy.com/?q=cron',
  command     => "/usr/lib/nagios/plugins/check_procs -C crond -c 1:30 -t 30 ",
}

Contributing

Open an issue or fork and open a Pull Request