Internal documentation only
This page has been marked as draft.
How to use liveness endpoint to test the state of the Gateway / Geneos components
Problem Copied
My Gateway process is running but I want to make sure this component is responsive.
Solution Copied
From version GA5.10 (JIRA-UTIL-1207) you can test the end point below - this can be done an any geneos component with the exception of SSO Agent.
For example - my gateway runs on host ubuntu.ldn.itrs on port 7555 - the command below will test whether it is responsive
curl -v http://ubuntu.ldn.itrs:7555/liveness
Result - It is not responsive
* Trying 172.15.1.244:7555… * TCP_NODELAY set * connect to 172.15.1.245 port 7555 failed: Connection timed out * Failed to connect to ubuntu.ldn.itrs port 7555: Connection timed out * Closing connection 0 curl: (28) Failed to connect to ubuntu.ldn.itrs port 7555: Connection timed out
curl -v http://ubuntu..ldn.itrs:9039/liveness
Result - It is responsive * Trying 172.15.1.244:9039… * TCP_NODELAY set * Connected to ubuntu.ldn.itrs (172.15.1.244) port 9039 (#0)
GET /liveness HTTP/1.1 Host: ubuntu.cslab.ldn.itrs:9039 User-Agent: curl/7.68.0 Accept: */*
* Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Content-Type: text/html < Cache-Control: no-cache < Connection: close < X-Content-Type-Options: nosniff < X-Frame-Options: sameorigin < X-XSS-Protection: 1; mode=block < Strict-Transport-Security: max-age=31536000; includeSubDomains < * Closing connection 0
Link below on end point syntax