Go to file
2019-11-26 14:47:28 +03:00
.gitignore Add check_consul itself; 2017-03-24 18:31:49 +03:00
check_consul Fix ServiceName and CheckID filtering 2019-11-26 14:47:28 +03:00
deps.txt Add README.org and deps.txt. 2017-03-24 19:37:54 +03:00
LICENSE Initial commit 2017-03-24 16:43:03 +03:00
README.org Fix README title; 2017-03-24 19:39:24 +03:00

check_consul

Overview

This is a python script designed to pull check statuses from consul nodes and translate them into useful messages and return code for Nagios. It was re-written with a base from nagios-consul-plugin.

Usage

Usage:
  check_consul node <node> <dc> [--addr=ADDR] [--CheckID=CheckID | --ServiceName=ServiceName] [--verbose]

Arguments:
  node  the consul node_name
  dc    the consul datacenter

Options:
  -h --help                  show this
  -v --verbose               verbose output
  --addr=ADDR                consul address [default: http://localhost:8500]
  --CheckID=CheckID          CheckID matcher
  --ServiceName=ServiceName  ServiceName matcher

Examples

$ ./check_consul node node1.dc1.example.com dc1 --addr http://node1.dc1.example.com:8500
passing: Serf Health Status (serfHealth)
  Agent alive and reachable
passing: Service 'example1' check (service:registrator.service.consul:example1:6032:ipv6)
  No output
passing: Service 'example2' check (service:registrator.service.consul:example2:6032:ipv6)
  No output