Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC monitoring using REST services

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

0 votes



5 answers

Permanent link
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.

0 votes


Permanent link
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

0 votes


Permanent link
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.

0 votes


Permanent link
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

0 votes


Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jun 08 '09, 10:26 a.m.

Question was seen: 8,157 times

Last updated: Jun 08 '09, 10:26 a.m.

Confirmation Cancel Confirm