2015-02-24 12:10:17 +00:00
|
|
|
cdist-type__consul_check(7)
|
|
|
|
=============================
|
2016-06-23 14:08:59 +00:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
|
|
|
cdist-type__consul_check - Manages consul checks
|
2015-02-24 12:10:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
Generate and deploy check definitions for a consul agent.
|
|
|
|
See http://www.consul.io/docs/agent/checks.html for parameter documentation.
|
|
|
|
|
|
|
|
Use either script toghether with interval, or use ttl.
|
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
|
|
|
None.
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
2016-05-20 06:50:56 +00:00
|
|
|
interval
|
2015-02-24 12:10:17 +00:00
|
|
|
the interval in which the script given with --script should be run
|
2016-05-20 06:50:56 +00:00
|
|
|
|
|
|
|
script
|
2015-02-24 12:10:17 +00:00
|
|
|
the shell command to run every --interval
|
2016-05-20 06:50:56 +00:00
|
|
|
|
|
|
|
ttl
|
2015-02-24 12:10:17 +00:00
|
|
|
how long a check is considered healthy without being updated through the
|
|
|
|
HTTP interfave
|
2016-05-20 06:50:56 +00:00
|
|
|
|
|
|
|
id
|
2015-02-24 12:10:17 +00:00
|
|
|
Defaults to --name
|
2016-05-20 06:50:56 +00:00
|
|
|
|
|
|
|
name
|
2015-02-24 12:10:17 +00:00
|
|
|
The name of this check. Defaults to __object_id
|
2016-05-20 06:50:56 +00:00
|
|
|
|
|
|
|
notes
|
2015-02-24 12:10:17 +00:00
|
|
|
human readable description
|
2016-05-20 06:50:56 +00:00
|
|
|
|
|
|
|
state
|
2015-02-24 12:10:17 +00:00
|
|
|
if this check is 'present' or 'absent'. Defaults to 'present'.
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
.. code-block:: sh
|
|
|
|
|
|
|
|
__consul_check redis \
|
|
|
|
--script /usr/local/bin/check_redis.py \
|
|
|
|
--interval 10s
|
2015-02-24 12:10:17 +00:00
|
|
|
|
2016-05-20 06:50:56 +00:00
|
|
|
__consul_check some-object-id \
|
|
|
|
--id web-app \
|
|
|
|
--name "Web App Status" \
|
|
|
|
--notes "Web app does a curl internally every 10 seconds" \
|
|
|
|
--ttl 30s
|
2015-02-24 12:10:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
2016-06-17 19:28:16 +00:00
|
|
|
`cdist-type__consul_agent(7) <cdist-type__consul_agent.html>`_
|
|
|
|
|
|
|
|
Full documentation at: <:cdist_docs:`index`>,
|
|
|
|
especially cdist type chapter: <:cdist_docs:`cdist-type`>.
|
|
|
|
|
|
|
|
|
|
|
|
AUTHORS
|
|
|
|
-------
|
|
|
|
Steven Armstrong <steven-cdist--@--armstrong.cc>
|
2015-02-24 12:10:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
|
|
|
Copyright \(C) 2015 Steven Armstrong. Free use of this software is
|
|
|
|
granted under the terms of the GNU General Public License version 3 (GPLv3).
|