With the JMX data provider you can collect data from JMX MBeans. Each JMX data source you define must identify either a single MBean (single instance) or a certain type of MBean (multiple instances). You must know the Object Name of the MBean or an Object Name pattern for a type of MBean that contains the data you want to collect. Use an Object Name pattern to only identify a set of similar MBeans. The set of MBeans that match the pattern must all provide the data that you want to see in the monitoring table. A typical Object Name pattern looks like *:j2eeType=Servlet,*. This Object Name Pattern matches all MBeans that have a j2eeType of Servlet. You can expect any MBean matching that pattern to have a similar set of exposed attributes and operations that can be added to your data source. A data source that uses that pattern collects data from each MBean matching that pattern. The attributes that you define for this data source must be available for any MBean matching the Object Name pattern you defined for the data source.
Use the following steps to add a JMX data source to collect data from Java™ Management Extension (JMX) MBeans:
After you have defined the data source, you can use the browse function to pre-populate your attribute list. You can then add to, remove from, or modify the attributes that the browser inserted. The names for these attributes can be long and difficult to type correctly. Using the Browse option is an easy way to input the correct name.
Support is provided for the following JMX servers:
The Connection Properties page (Figure 106) contains the details on how to connect to an MBean server. This page needs to be completed with details about your MBean server.
(Optional) Select Set as agent configuration defaults if you want the defaults for JMX to be copied from these properties. For example, the default JBoss base paths is C:\jboss-4.0.2.
After you have specified the properties needed to connect, click Test Connection to ensure that the connection can be established. If the connection is not successful, correct the necessary properties.
When the connection is successful, click Finish to return to the browser that will begin using the connection you just configured.
The Java class path information in the Connection Properties page contains three fields that should be completed as necessary to connect to an MBean server that requires java classes that are not included in the Java 5 runtime environment. Normally, the MBean server you need to connect to should be installed on the same system as the Agent Builder. In this case, specify the directory where the application containing the MBean server was installed as the Base Paths field. The Jar Directories field should then list the directories relative to the Base Paths directory that contain the jar files needed to connect to the MBean server. The Class Path field can be used to include specific jar files. The jar files listed in the Jar Directories field do not need to be listed separately in the Class Path field.
Any of the fields can contain more than one reference; just separate the entries by a semicolon. These values are the same values that are needed when configuring the agent. See JMX configuration for additional information about these fields.
You can use this table to browse the MBeans from the server and decide which ones contain the data you want to monitor. To help browse a potentially large number of MBeans, you can sort by any key attribute (from the context menu or by clicking on a column header). You can also show any key attribute in any column by selecting "Show Key Property" from the context menu. When you see a key property value in the table that identifies MBeans you want to monitor, right-click on that value and choose Select only MBeans with Key Property from the context menu.
To create a data source from the JMX Browser, use the four panels described above to build an Object Name Pattern that matches a set of MBeans that each contains the monitoring data you want to collect. For example, if you wanted to monitor data from all of the ThreadPool MBeans, you would do the following:
The JMX Agent-Wide Options window shows the types of application servers that the Agent Builder supports. If you previously selected Set as agent configuration defaults on the Connection Properties page, the type of application server that you browsed to is automatically selected.
The default value of the property, JBoss base paths, has the same value that was entered in the JMX browser in Step Figure 107.
For more information about the attribute groups for JMX events, see (JMX Event attribute groups),
[ Top of Page | Previous Page | Next Page ]