Extended Monitoring Guide

  • Docs Home
  • Community Home

3. Enable Monitoring

3.1. Configuring WebLogic to Allow JMX Queries

If you have not set up a domain and server then run the startWLS.sh script located in the ${BEA_HOME}/wlserver_10.0/server/bin directory. If you don't have the Terminal I/O package installed you can set the JAVA_OPTIONS variable to the following value:

JAVA_OPTIONS="-Dweblogic.management.allowPasswordEcho=true"
export JAVA_OPTIONS

Provide a user name and password to start WebLogic. Note that WebLogic requires a password that is at least eight characters long. Wait for WebLogic to generate a configuration and start up. Shut down WebLogic and restart it with remote JMX access enabled.

To enable remote JMX access set the following variable:

JAVA_OPTIONS="-Dcom.sun.management.jmxremote.port=12347"
JAVA_OPTIONS="${JAVA_OPTIONS} -Dcom.sun.management.jmxremote.authenticate=false"
JAVA_OPTIONS="${JAVA_OPTIONS} -Dcom.sun.management.jmxremote.ssl=false"
export JAVA_OPTIONS

Then re-run the ./startWLS.sh script. JConsole can then communicate with the server on port 12347.

3.2. Configuring Zenoss

All WebLogic services must have a device entry under the /Devices/Server/WebLogic device class.

Note

The zenjmx daemon must be configured and running. See Section 2.1, “Sun Java Runtime Environment (JRE)” for more information about configuring the zenjmx daemon with the Sun JRE tools.

  1. Navigate to the device or device class under the /Devices/Server/WebLogic device class in the Zenoss web interface.

  2. If applying changes to a device, click the page menu, then select MorezProperties.

    If applying changes to a device class, click the zProperties tab.

  3. Edit the appropriate zProperties for the device(s).

    Table 19.2. WebLogic zProperties

    NameDescription

    zWebLogicJmxManagementAuthenticate

    This zProperty is deprecated

    zWebLogicJmxManagementPassword

    JMX password

    zWebLogicJmxManagementPort

    The port number used to gather JMX information

    zWebLogicJmxManagementUsername

    JMX username for authentication


  4. Click Save to save your changes.

    You will now be able to start collecting the WebLogic server metrics from this device.

  5. Navigate to the Perf tab and you should see some placeholders for graphs. After approximately 15 minutes you should see the graphs start to become populated with information.

Tip

The out-of-the-box WebLogic data source configuration has been defined at the macro level, but can be configured to operate on a more granular basis. For example, the Servlet Reload Count applies to all servlets in all web applications but it could be narrowed to be Servlet /submitOrder in web application "production server".