By Juergenkress-Oracle on Sep 23, 2015
Inspired by a presentation given by Shukie Ganguly on the free Oracle Virtual Technology Summit in July (see here); “New APIs and Tools for Application Development in WebLogic 12c”, I decided to take a look at an interesting new feature in WebLogic Server 12c: the RESTful Management Services. You can see here how to enable them. In this post I will provide an overview of my short study on the topic.
RESTful management services consist of two sets of resources. tenant-monitoring resources and ‘wls’ resources. The first is more flexible in response format (JSON, XML, HTML) and more suitable for monitoring. With the latter you can for example update datasource properties and create entire servers. It however only supports JSON as return format. The ‘wls’ resources also provide links so you can automagically traverse the resource tree which is very useful. I’ve provided a Python script to do just that at the end of this post.
In the past I have already created all kinds of tools to do remote monitoring of WebLogic Server 11g. See for example http://javaoraclesoa.blogspot.nl/2012/09/monitoring-datasources-on-weblogic.html for some code to monitor datasources and for the state of the SOA Infrastructure; http://javaoraclesoa.blogspot.nl/2012/11/soa-suite-cluster-deployments-and.html and also for BPEL: http://javaoraclesoa.blogspot.nl/2013/03/monitoring-oracle-soa-suite-11g.html.
With the 12c RESTful Management Services this becomes a lot easier and does not require any custom code, which is of course a major improvement!
It is possible to let the RESTful Management Services return HTML, JSON or XML by using the Accept HTTP header (application/json or application/xml. HTML is the default). See here.
What can you monitor?
Available resources under http(s)://host:port/management/tenant-monitoring are (WLS 12.1.1):
You can also go to the level of an individual resource like for example datasources/datasourcename.
The tenant-monitoring resources of the RESTful Management Services are not specific for SOA Suite. They do not allow you to obtain much information about the inner workings of applications like the SOA infrastructure application or the BPEL process manager. Thus my SOA infrastructure monitoring tool and BPEL process state monitoring tool could still be useful. You can potentially replace this functionality however with for example Jolokia. See below.
Monitoring a lot of resources
the Management Services allow monitoring of many resources, they would
be ideal to use in a monitoring tool like Nagios. Mark Otting beat me to
this however Read the complete article here.
For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.