It's all about the answers!

Ask a question

RTC monitoring using REST services


Andrés Guerrero (20613218) | asked Jun 08 '09, 10:26 a.m.
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

5 answers



permanent link
Andrés Guerrero (20613218) | answered Jun 10 '09, 4:49 a.m.
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.

permanent link
Patrick Streule (4.9k21) | answered Jun 10 '09, 5:25 a.m.
JAZZ DEVELOPER
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

permanent link
Frank Gerhardt (9144) | answered Jun 11 '09, 5:32 a.m.
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.

permanent link
Patrick Streule (4.9k21) | answered Jun 11 '09, 3:33 p.m.
JAZZ DEVELOPER
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

permanent link
Atul Kumar (1872329) | answered Aug 17 '11, 8:20 a.m.
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 ?

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

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.