We can use the REST endpoint GET /xray/api/v1/monitor to perform Health Check on Xray servers. This will give the system monitoring status of the particular instance.
Sample usage:
GET /xray/api/v1/monitor { "problems": [ { "severity": "warning", "services": [ "analysis", "event", "indexer", "xray_server" ], "problem": "No connection to Artifactory instance ###art12" } ] }
Command:
curl -uadmin:password -XGET http://mill.jfrog.info:17036/xray/api/v1/monitor
Sample usage:
Sample output for an Xray server with problems:
The above output describes the overall status of the server which will include the status of a variety of parameters and the conditions that are being monitored. Note that some notifications may be categorized as "warnings" or "errors" depending on the severity of the condition.