$('a[name]').remove(); $('#ic-homepage__footer').before('

'); $("#tabs").tabs({ selected: 1 }); $("#ic-homepage__ic-tips").append( quickTipHTML() ); unhideOneProductTip(); $("#ic-homepage__product-tips").wrapInner('

'); $("#ic-homepage__feed-tips").wrapInner('

'); });

IBM Tivoli Monitoring > Version 6.3 > User's Guides > Agent Builder User's Guide > Monitor Java Management Extensions (JMX) MBeans IBM Tivoli Monitoring, Version 6.3


Specific fields for Java Management Extensions (JMX) MBeans

The syntax of the metric name for a JMX Attribute group must follow certain rules when specified on the Attribute Information window.

Figure 1. Attribute Information page

The syntax of the metric name for a JMX Attribute group consists of tokens that are separated by a period. The tokens form primary values and optionally secondary values:

The following syntax describes the format for the Metric name field:

By including only a primary value in the metric name definition, the data that is collected can be any of the following items:

By adding a secondary value to the definition of a metric, you can drill down into the primary value of a Java object. Also, you can start a public method or fetch a public instance variable.

By adding a secondary value to another secondary value in the definition of the metric, you can drill down into a secondary value object. You can continue as deeply as objects are nested inside an MBean or a Notification.

Tokens that make up primary and secondary values are either keywords or names. In most cases, a keyword token is followed by a name token. The following table shows some examples:

Metric name sample Attribute group type Description of the data returned
Domain MBean The domain portion of the MBean (the part before the colon).
Name MBean The full string representation of the MBean.
Attribute.serverVendor MBean MBean attribute serverVendor.
Method.getHeapSize MBean The value that is returned by the getHeapSize() on the MBean.
Property.j2eeType MBean The value of j2eeType is extracted from the MBean name.
Field.Message Event (Notification) The Message field in a notification.

The keywords Attribute, Method, and Field can return Java objects which contain other data. You can run operations on those objects by appending secondary value definitions. More examples:

Metric name sample Attribute group type Description of the data returned
Attribute.deployedObject.Method.getName MBean Takes the deployedObject attribute from the MBean and gets the result of the getName() method.
Attribute.eventProvider.Method.
getException.Method.getDescription
MBean Goes 3 deep: an attribute named eventProvider is presumed to be an object which has a getException() method. This method returns an object with a getDescription() method. That method is called and the return value is put in the column.
Attribute.HeapMemoryUsage.Method.
get(used)
MBean Takes the HeapMemoryUsage attribute from the MBean and gets the result of the get(String value) method. The string that is used is passed to the method as the argument. Only 1 argument can be provided and it must be a literal string value.

Shows how you can collect data from an open MBean composite data structure.

Domain and Property can be used as keywords in secondary values if the previous value returned a String in the format of an MBean name. For example:

Metric name sample Attribute group type Description of the data returned
Attribute.jdbcDriver.Property.name MBean The attribute jdbcDriver returns an MBean name, and the key property, name, is extracted from the MBean name.
Attribute.jdbcDriver.Domain MBean The attribute jdbcDriver returns an MBean name, and the domain is extracted from the MBean name.

The ElementCount and Explode keywords run operations on arrays or collections of data.

Examples of each of the keywords:

Metric name sample Attribute group type Description of the data returned
Attribute.deployedObjects.ElementCount MBean The MBean attribute deployedObjects is an array, and this column contains the number of elements in the array.
Attribute.deployedObjects.Explode.
MBean.Property.j2eeType
MBean Causes the table to have 1 row for each element in deployed objects. This column contains the j2eeType of the deployed Object.
Attribute.SystemProperties.Method.
values.Explode.Method.get(key)
MBean Causes you to get one new row for each entry in an open MBean tabular data structure. Each tabular data structure contains a composite data structure with an item named key, which is returned.


Parent topic:

Monitor Java Management Extensions (JMX) MBeans

+

Search Tips   |   Advanced Search