Hi,
I would like to add custom /etc/consul.d/*.json checks and monitor the
same using consul.
I followed the documentation under "Testing a Consul cluster on a
single host" from:
https://github.com/progrium/docker-consul
and was able to start two containers - one running as server and
another as client, and was able to join the client with the server. To
start the server, I used the following:
$ sudo docker run --name consul -p 8400:8400 -p 8500:8500 -p
8600:53/udp -v "/home/guest/mnt:/data" -h consul progrium/consul
-server -bootstrap -ui-dir /ui
$ JOIN_IP="$(docker inspect -f '{{.NetworkSettings.IPAddress}}' consul)"
I started the consul-client using the following:
$ sudo docker run --name consul-client -v
"/home/guest/consul.d:/etc/consul.d" progrium/consul -join $JOIN_IP
I see the following output in the server log:
...
2015/05/07 12:30:38 [INFO] consul: member 'e3f2648568ee' joined,
marking health alive
...
I added the following simple JSON in /home/guest/consul.d/
{"check": {"name": "Ping test", "script": "ping -c3
www.google.com
>/dev/null", "interval": "60s"}}
I see two nodes in the consul UI dashboard, but, not the 'Ping test'
service check. What could I be missing?
Appreciate any help in this regard,
Thanks!
SK
--
Shakthi Kannan
http://www.shakthimaan.com