No release in over 3 years
Low commit activity in last 3 years
This plugin monitors services under a Habitat supervisor
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.11
~> 12.3
~> 3.4
~> 3.8
~> 0.63
~> 0.16
~> 0.9

Runtime

>= 1.2, < 5.0
 Project Readme

Sensu Plugins Habitat

Build Status Gem Version

A set of Sensu plugins for monitoring Habitat.

Functionality

This gem includes a plugin for monitoring Habitat services' health check statuses via a supervisor API.

Files

  • bin/check-habitat-service-health.rb

Usage

check-habitat-service-health.rb

With only default options, the check-habitat-service-health.rb script assumes a Habitat supervisor on 127.0.0.1:9631, iterates over all services running under that supervisor, and aggregates their health check statuses. The final overall status of the check is whatever the most serious status is of any one service, e.g. if 4/5 services are OK and one is in WARNING, the check result will be a WARNING.

check-habitat-service-health.rb

If the Habitat supervisor is on another host:

> check-habitat-service-health.rb -H 192.168.0.4
> check-habitat-service-health.rb --host 192.168.0.4

If the Habitat supervisor is on another port:

> check-habitat-service-health.rb -P 4242
> check-habitat-service-health.rb --port 4242

To check only a particular set of services running under the Habitat supervisor:

> check-habitat-service-health.rb -s service1.default,service2.default
> check-habitat-service-health.rb --services service1.default,service2.default

In this case, any service that is specified and not running will be counted as a CRITICAL.

Installation

Installation and Setup