RTC monitoring using REST services
5 answers
Hi all,
I'm looking for a service/services that returns status properties of components/server.
Anyone can help?
Or maybe some shell script that can return the status of RTC...
Thanks
Andrs
Only some clarifications. Reading wiki documentation I found this:
From: https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItems
The sections contain a general description of each aspect, a reference part and some examples. The examples typically use curl or a standard browser. If the server is configured for form-based authentication, the following snippet will log you in and store the session cookie in a file for subsequent use by the examples:
COOKIES=/tmp/cookies.txt
USER=user
PWD=password
HOST=https://localhost:9443/jazz
curl -D - -k -c $COOKIES -d j_username=$USER -d j_password=$PWD $HOST/j_security_check
This is the kind of access we want to do for monitoring server (Indeed curl is the command we want to use) : beginning with an authentication and then accessing REST services to get real Status of the server.
On the other hand we cant use directly de URL of Status:
https://localhost:9443/jazz/admin#action=com.ibm.team.repository.admin.componentStatus
Because this page works with AJAX and the content is not present in the response.
This is the kind of access we want to do for monitoring server (Indeed
curl is the command we want to use) : beginning with an authentication
and then accessing REST services to get real Status of the server.
On the other hand we cant use directly de URL of Status:
https://localhost:9443/jazz/admin#action=com.ibm.team.repository.admin.componentStatus
Because this page works with AJAX and the content is not present in
the response.
Although these services are internal and might change, you could use the
same service calls that the Admin web ui uses:
https://localhost:9443/jazz/service/com.ibm.team.repository.service.internal.IServerStatusRestService/components
and POSTs to
https://localhost:9443/jazz/service/com.ibm.team.repository.service.internal.IServerStatusRestService/statusForServices
Firebug will allow you see the data that needs to be passed to
'statusForServices'.
--
Regards,
Patrick
Jazz Work Item Team
COOKIES=/tmp/cookies.txt
USER=user
PWD=password
HOST=https://localhost:9443/jazz
curl -D - -k -c $COOKIES -d j_username=$USER -d j_password=$PWD $HOST/j_security_check
I tried that but I get a 408:
HTTP/1.1 408 The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requ ested or close and re-open your browser
Any suggestions?
Frank.
I tried that but I get a 408:
HTTP/1.1 408 The time allowed for the login process has been exceeded.
If you wish to continue you must either click back twice and re-click
the link you requ ested or close and re-open your browser
Any suggestions?
Please see David's and my answer in the jazz.extend group or
https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2
--
Regards,
Patrick
Jazz Work Item Team
I don't want to use CURL for invoking an HTTP/GET. Instead, want to use a web service through Java API. How do I provide the JTS with authentication information ?
Please see David's and my answer in the jazz.extend group or
https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2
--
Regards,
Patrick
Jazz Work Item Team
I tried that but I get a 408:
HTTP/1.1 408 The time allowed for the login process has been exceeded.
If you wish to continue you must either click back twice and re-click
the link you requ ested or close and re-open your browser
Any suggestions?
Please see David's and my answer in the jazz.extend group or
https://jazz.net/wiki/bin/view/Main/ResourceOrientedWorkItemAPIv2
--
Regards,
Patrick
Jazz Work Item Team