Status REST Service

This API is deprecated and replaced with Ceptor Agent REST API which offers more functionality and is available as an OpenAPI implementation.

Once status REST services are enabled and properly configured they can be accessed as shown below

Using the rest services is done through the following URLs as described below.

http://server:port/restservices/status/configserver/?servers=XX,YY

Optional parameter servers – a comma separated list of servers to get status for. If no list is given, status is returned for all servers.

Description

Returns config server status texts and connection status

Example URLS

http://localhost:5300/restservices/status/configserver/
http://localhost:5300/restservices/status/configserver/?servers=configserver1,useradmin1
http://localhost:5300/restservices/status/webserver

http://localhost:5300/restservices/status/webserver?servers=appserver1,appserver2

Formatted example

[   {
"name": "configserver1"
"alias": ""
"htlmStatus": "<p><b>Actions</b><br><!-- action="peer" title="Peers connections" resource="peer.connections" permission="read"...........”
"state": "NOT_CONNECTED"
"pingTime": 0
}
. . . .

. . . .
{
"name": "useradmin1"
"alias": ""
"htlmStatus": "Time: Thu May 05 17:27:44 CEST 2016<br>Number of session listeners: 0<br>SessionCtrl server connection status: NIO TCP Peer useradmin1@localhost:...........”
"state": "RUNNING"
"pingTime": 0
}

]


http://server:port/restservices/status/webserver/

No optional parameters

Description

Returns dispatcher web server status information

Example URLS

http://localhost:5300/restservices/status/webserver/

Formatted example

[

[{
"dispatcherName": "dispatcher1",
"alternateServers": [
{
"name": null,
"webServers": [ {
"server": "127.0.0.1:8080",
"cookieName": "server1",
"sessions": 0,
"isDown": true,
"lastDownException": {
"cause": null,
"stackTrace": [
{
"methodName": "waitForConnect",
"fileName": "DualStackPlainSocketImpl.java",
"lineNumber": -2,
"className": "java.net.DualStackPlainSocketImpl",
"nativeMethod": true
},
{
"methodName": "socketConnect",
"fileName": "DualStackPlainSocketImpl.java",
"lineNumber": 85,
"className": "java.net.DualStackPlainSocketImpl",
"nativeMethod": false
},
{
"methodName": "doConnect",
"fileName": "AbstractPlainSocketImpl.java",
"lineNumber": 350,
"className": "java.net.AbstractPlainSocketImpl",
"nativeMethod": false
},
{
"methodName": "connectToAddress",
"fileName": "AbstractPlainSocketImpl.java",
"lineNumber": 206,
"className": "java.net.AbstractPlainSocketImpl",
"nativeMethod": false
},
{
"methodName": "connect",
"fileName": "AbstractPlainSocketImpl.java",
"lineNumber": 188,
"className": "java.net.AbstractPlainSocketImpl",
"nativeMethod": false
},
{
"methodName": "connect",
"fileName": "PlainSocketImpl.java",
"lineNumber": 172,
"className": "java.net.PlainSocketImpl",
"nativeMethod": false
},
{
"methodName": "connect",
"fileName": "SocksSocketImpl.java",
"lineNumber": 392,
"className": "java.net.SocksSocketImpl",
"nativeMethod": false
},
{
"methodName": "connect",
"fileName": "Socket.java",
"lineNumber": 589,
"className": "java.net.Socket",
"nativeMethod": false
},
{
"methodName": "connectSocketWithTimeout",
"fileName": "TunnelServlet.java",
"lineNumber": 8706,
"className": "dk.itp.tunnel.TunnelServlet",
"nativeMethod": false
},
{
"methodName": "createNormalSocket",
"fileName": "Http11Support.java",
"lineNumber": 393,
"className": "dk.itp.tunnel.Http11Support$Connection",
"nativeMethod": false
},
{
"methodName": "connect",
"fileName": "Http11Support.java",
"lineNumber": 362,
"className": "dk.itp.tunnel.Http11Support$Connection",
"nativeMethod": false
},
{
"methodName": "transmitRequest",
"fileName": "Http11Support.java",
"lineNumber": 161,
"className": "dk.itp.tunnel.Http11Support$Connection",
"nativeMethod": false
},
{
"methodName": "pingURL",
"fileName": "TunnelServlet.java",
"lineNumber": 3612,
"className": "dk.itp.tunnel.TunnelServlet",
"nativeMethod": false
},
{
"methodName": "pingURL",
"fileName": "TunnelServlet.java",
"lineNumber": 3419,
"className": "dk.itp.tunnel.TunnelServlet",
"nativeMethod": false
},
{
"methodName": "run",
"fileName": "TunnelServlet.java",
"lineNumber": 8022,
"className": "dk.itp.tunnel.TunnelServlet",
"nativeMethod": false
},
{
"methodName": "run",
"fileName": "Thread.java",
"lineNumber": 745,
"className": "java.lang.Thread",
"nativeMethod": false
}
],
"localizedMessage": "Connection refused: connect",
"message": "Connection refused: connect",
"suppressed": []
},
"lastCheckedAt": 1500657477459,
"currentSimultaneousRequests": 0,
"lastUsedAt": 0,
"isUnavailable": false,
"weblogicJVMID": ""
}]
},
{
"name": "webservices",
"webServers": [ {
"server": "127.0.0.1:4300",
"cookieName": "ws1",
"sessions": 0,
"isDown": false,
"lastDownException": {
"cause": null,
"stackTrace": [
{
"methodName": "<init>",
"fileName": "TunnelServlet.java",
"lineNumber": 1025,
"className": "dk.itp.tunnel.TunnelServlet$ServerEntry",
"nativeMethod": false
},
{
"methodName": "parseTargetServers",
"fileName": "TunnelServlet.java",
"lineNumber": 7691,
"className": "dk.itp.tunnel.TunnelServlet",
"nativeMethod": false
},
{
"methodName": "reconfigure",
"fileName": "TunnelServlet.java",
"lineNumber": 7234,
"className": "dk.itp.tunnel.TunnelServlet",
"nativeMethod": false
},
{
"methodName": "configUpdated",
"fileName": "TunnelService.java",
"lineNumber": 73,
"className": "dk.itp.tunnel.TunnelService",
"nativeMethod": false
},
{
"methodName": "configurationUpdated",
"fileName": "ManagedService.java",
"lineNumber": 200,
"className": "dk.itp.managed.service.client.ManagedService",
"nativeMethod": false
},
{
"methodName": "configurationUpdated",
"fileName": "ConfigClient.java",
"lineNumber": 325,
"className": "dk.itp.managed.service.client.ConfigClient",
"nativeMethod": false
},
{
"methodName": "connected",
"fileName": "ConfigClient.java",
"lineNumber": 419,
"className": "dk.itp.managed.service.client.ConfigClient",
"nativeMethod": false
},
{
"methodName": "connectLoadbalanced",
"fileName": "ConfigClient.java",
"lineNumber": 400,
"className": "dk.itp.managed.service.client.ConfigClient",
"nativeMethod": false
},
{
"methodName": "run",
"fileName": "ConfigClient.java",
"lineNumber": 748,
"className": "dk.itp.managed.service.client.ConfigClient",
"nativeMethod": false
},
{
"methodName": "run",
"fileName": "Thread.java",
"lineNumber": 745,
"className": "java.lang.Thread",
"nativeMethod": false
}
],
"localizedMessage": null,
"message": null,
"suppressed": []
},
"lastCheckedAt": 1500657477463,
"currentSimultaneousRequests": 0,
"lastUsedAt": 0,
"isUnavailable": false,
"weblogicJVMID": ""
}]
}
]
}]

© Ceptor ApS. All Rights Reserved.