Monitor Servers

You can send a GET request to monitor the Administration Server and Managed servers. The following steps show how to build this GET request using cURL:
  1. Identify the host name and port of your domain's Administration Server and construct the GET request using the /management/weblogic/latest/serverRuntime endpoint. This WebLogic Server request uses the following URL structure:
    http://localhost:7001/management/weblogic/latest/serverRuntime
  2. Specify the headers on the cURL command line:
    • -H X-Requested-By:MyClient

    • -H Accept:application/json

  3. Construct the GET request. Use the fields parameter in the URL to specify the properties of the servers that you want the request to return, such as the name, overall health state, Administration Server URL as shown in the example.

    curl -v \
    --user admin:admin123 \
    -H X-Requested-By:MyClient \
    -H Accept:application/json \
    -X GET http://localhost:7001/management/weblogic/latest/serverRuntime?fields=name,openSocketsCurrentCount,overallHealthState,administrationURL&links=self

The GET request returns the name of the server, the health state of the server and the Administration Server URL.

HTTP/1.1 200 OK

Response Body:
{
    "links": [{
        "rel": "self",
        "href": "http:\//localhost:7001/management/weblogic/latest/serverRuntime"
    }],
    "overallHealthState": {
        "state": "ok",
        "subsystemName": null,
        "partitionName": null,
        "symptoms": []
    },
    "openSocketsCurrentCount": 1,
    "administrationURL": "t3:\//localhost:7001",
    "name": "AdminServer"
}