Using the health check API
To check the status of the Gateway, you can use the health check web API (/apphealth in the Gateway) to ping the public interface to verify that important services are running.
API request
To check the Gateway's health, use the health check URL with any browser, with curl on the Gateway's public interface, or from a load balancer.
$ curl -k https://bcgateway.example.com/apphealth
Example responses
Responses contain JSON strings with additional data, which may include HTTP status codes where possible.
Scenario | Response JSON |
---|---|
Control channel and IKE are working as expected |
TEXT
|
Control channel is up, IKE is down |
TEXT
|
Control channel is down, IKE status is unknown |
TEXT
|
Error occurred during response processing |
TEXT
|
Rate limit reached The Gateway allows 1 request every 4 seconds per source IP |
TEXT
|