consul-check

command module
v0.0.0-...-7e1d3ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2014 License: GPL-2.0 Imports: 11 Imported by: 0

README

consul-check

Control consul checks and trigger scripts on check fail.

config file

JSON used for config file.

Example config file:

{
    "PidFile": "path/to/pid/file",
    "LogFile": "path/to/log/file",
    "Consul": {
	  "Address": "127.0.0.1:8500",
	  "Scheme": "http"
    },
    "Operations":[
	{
	    "Key": "keyname",
	    "Script": "path/to/script.sh",
	    "Interval": checkinterval,
	    "Timeout": timeoutAfterScriptExec
	},
	{
	    "Key": "keyname",
	    "Script": "path/to/script.sh",
	    "Interval": checkinterval,
	    "Timeout": timeoutAfterScriptExec
	},
	...
    ]
}

If LogFile set to "", then log will be send to stdout.

commands

  • Update config file: kill -HUP PID

  • Stop process: kill PID

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL