mirror of
https://github.com/valitydev/check_consul.git
synced 2024-11-06 02:15:23 +00:00
.gitignore | ||
check_consul | ||
deps.txt | ||
LICENSE | ||
README.org |
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