Ping endpoints

Each Zato component offers one or more HTTP ping endpoints - dedicated addresses that external monitoring tools can use to discern when the component is operational.

Load-balancer

The built-in load-balancer has two endpoints to ping. On port 11223, the actual runtime load-balancer processes requests. On port 20151, a side process, called an agent, processes administrative requests from Dashboard to the load-balancer.

To ping a load-balancer's instance:

$ curl -XGET http://localhost:11223/zato-lb-alive
<html><body><h1>200 OK</h1>
Service ready.
</body></html>
$

To ping a load-balancer's agent (note that the method is POST and that there should be no output):

$ curl -XPOST http://localhost:20151/
$

Servers

To ping a server:

$ curl -XGET http://localhost:17010/zato/ping
{"pong":"zato","zato_env":{"result":"ZATO_OK","cid":"7cc657097fa0114017beeed6","details":""}}
$

Dashboard

To ping an instance of Dashboard (note that there should be no output):

$ curl -XGET http://localhost:8183/
$

Scheduler

To ping an instance of scheduler (note that there should be no output):

$ curl -XGET http://localhost:31530/
$