Thursday, February 10, 2011

Middleware mgmt: How to generate URL availability report for web applications?

1. Goto Targets->System, Add System, Provide System Name say ad4j,
2. Add Components to system. In my case, I added two weblogic Servers as Target components.
wls1 -> that has webapp1 URL
wls2 -> that has webapp2 URL
3. Goto Target->Services,
Add Generic Service ,
Provide Service Name e.g. ad4j_service
Select System i.e. ad4j Define Key components of system (Select needed web applications, in my case it's ad4j_http_test and petstore_http_test)
Define availability based on Service Tests
Select Test Type -> Http Ping->Give url_test_name and specify complete webapp1_url
Create Beacon->select agent which will be executing the http url test->Create beacon for that
Click on 'Verify Service Test', then move to next step
Select Performance Metrics (I went for default values for now)->next->..
Click on Finish
4. Till now we have defined the  system and Service based one web application url. Let's add another webapp_url.
Again goto Targets->Service
Select service web_app_service and click on 'Configure' button
Goto 'Monitoring Configuration'->Select Service Tests and Beacons
Add another 'HTTP ping' test -> Provide test name and url->Verify Service test and click on 'ok'
Enable newly added test
When check box appears under 'Key Service Test', select all tests and click on 'Change Key tests' button below this table
click ok
5.Goto 'Monitoring Configuration'->Availability Definition
Select 'At least one key service test is successful'. Click OK.
Select Yes when asked for confirmation.
6. You can get the URL availability report under Targets->Services
Click availability status icon for selected service.
It will give detailed report for entire service.

Given is example of URL availability if anyone of the URL is available and user wants to show status of web app as Up.

If one wants all URLs to be up and then show status as up, one needs to modify the availability Definition for Service and select service test rule as 'All key service tests are successful'.

6 comments:

Anonymous said...

Hi Neelima,

I have an application deployed in Weblogic cluster and my application is monitored via emgc. I can access the application index page on the individual weblogic node using the below URL. Is there any way
in EMGC to monitor HTTP request status. My requirement is EMGC should monitor the HTTP request status on each weblogic node and if its through 404 or 500 error we should get alert in dashboard



http://10.0.0.20:8001/app/index.html -Node 1
http://10.0.0.20:8002/app/index.html -Node 2

Anonymous said...

Hi Neelima,

I have an application deployed in Weblogic cluster and my application is monitored via emgc. I can access the application index page on the individual weblogic node using the below URL. Is there any way
in EMGC to monitor HTTP request status. My requirement is EMGC should monitor the HTTP request status on each weblogic node and if its through 404 or 500 error we should get alert in dashboard



http://10.0.0.20:8001/app/index.html -Node 1
http://10.0.0.20:8002/app/index.html -Node 2

Neelima Bawa said...

Using service level monitoring (SLM) features of emgc, you can monitor HTTP requests and I believe it allows you to also trap http errors.

Anonymous said...

Can i configure SLM in EM11? If yes from where i can configure it.

Neelima Bawa said...

For using SLM, you need to procure resp. licenses. Technically, to get more details on Services in EMGC, pl. refer http://docs.oracle.com/cd/E11857_01/em.111/e16790/apm.htm
Hopefully it should give you all details.

Anonymous said...

Thank you neelima!This link is very usefull!