This discussion is archived
0 Replies Latest reply: Dec 3, 2013 1:27 PM by user13475271 RSS

Oracle Enterprise Manager JMX Fetchlet

user13475271 Newbie
Currently Being Moderated

Hello,

 

I am looking for help with the following sample. I have added the following xml tags to an xml file. I then created a plugin and then deployed to Oracle Enterprise Manager 12c. And I changed some of the tags to match my implementation. But I didn't and don't know what should be the input for

 

<Property NAME="jmx_hostName" SCOPE="INSTANCE" OPTIONAL="FALSE">JMX_HOSTNAME</Property>

 

Since I wasn't able to change this entry correct, there was a Metric Collection Error. It complained JMX_HOSTNAME. I thank you in advance for any help you could provide.

 

Leong

 

Developing JMX Fetchlet to retrieve TabularData

 

I am currently developing a custom plug-in on OEM 12c that would allow me to collect metrics from a MXBean I have deployed in a Java Container. The JMX fetchlet is calling an operation on my MXBean. The operation returns a javax.management.openmbean.TabularData object. Everything seems to be working as in I get no complaints from either the Management Agent or Management Service but when reviewing the Agent logs I see that no rows : {} are returned during the collection. My questions are:

 

1. Does OEM support TabularData, javax.management.openmbean.TabularData?

2. If OEM does not support javax.management.openmbean.TabularData what TabularData does it support?

 

 

I have included snippets of my target type and default collections file pertaining to this operation.

 

Target Type

<Metric NAME="TShirts" TYPE="TABLE">

<Display>

<Label NLSID="tshirts_displayname">Test TShirts</Label>

</Display>

<TableDescriptor>

<ColumnDescriptor NAME="model" TYPE="STRING" IS_KEY="TRUE">

<Display>

<Label NLSID="display_model">Model</Label>

</Display>

</ColumnDescriptor>

<ColumnDescriptor NAME="color" TYPE="STRING" IS_KEY="TRUE">

<Display>

<Label NLSID="display_color">Color</Label>

</Display>

</ColumnDescriptor>

<ColumnDescriptor NAME="size" TYPE="STRING" IS_KEY="TRUE">

<Display>

<Label NLSID="display_size">Size</Label>

</Display>

</ColumnDescriptor>

<ColumnDescriptor NAME="price" TYPE="NUMBER" IS_KEY="FALSE">

<Display>

<Label NLSID="display_price">Price</Label>

</Display>

</ColumnDescriptor>

</TableDescriptor>

<QueryDescriptor FETCHLET_ID="JMX">

<Property NAME="jmx_hostName" SCOPE="INSTANCE" OPTIONAL="FALSE">JMX_HOSTNAME</Property>

<Property NAME="serviceURL" SCOPE="GLOBAL">service:jmx:rmi:///jndi/rmi://%jmx_hostName%:1099/karaf-root</Property>

<Property NAME="UserName">smx</Property>

<Property NAME="password">smx</Property>

<Property NAME="metric">harris.net:type=Proxy</Property>

<Property NAME="operation">listTShirts</Property>

<Property NAME="columnOrder">model;color;size;price</Property>

</QueryDescriptor>

</Metric>

 

Default Collections

<CollectionItem NAME="TShirts" UPLOAD="6">

<Schedule>

<IntervalSchedule INTERVAL="5" TIME_UNIT="Min"/>

</Schedule>

<MetricColl NAME="Model"/>

<MetricColl NAME="Color"/>

<MetricColl NAME="Size"/>

<MetricColl NAME="Price"/>

</CollectionItem>

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points