As I implied earlier, loading WebLogic is a two-stage process. First, you must obtain an SNMP server and load the WebLogic SNMP MIB into the SNMP manager. The WebLogic SNMP MIB is included with the distribution. It can be found in: /classes/weblogic/management/snmp/mib It is packaged in the weblogic.jar java archive; the actual file is named BEA-WEBLOGIC-MIB.asn1 . Configuring the SNMP manager is outside the scope of this book, but you have my sincere best wishes. SNMP configuration is done from the Administration console. There are two steps:
Authorize an SNMP ManagerAuthorizing an SNMP manager is, of course, done through the Admininstration console. Expand the SNMP folder and click on the Trap Destinations subfolder. There are four fields to fill out:
Enable the SNMP AgentTo configure an SNMP agent, click on the SNMP folder in the left pane. Check the Enabled box to activate SNP monitoring. You will need to fill out the following fields:
When configuring the intervals at which SNMP does checks, bear in mind that the level of network traffic generated can be nontrivial. ProxiesAs originally conceived, the SNMP model provided for only a single agent to monitor all activity on a particular IP address. In practice, this idea turned out to be rather limiting. Consequently, WebLogic SNMP incorporates the idea of proxies. A proxy is an SNMP agent that has been configured to act as a collection point for SNMP information about a particular domain. In the case where multiple servers are being monitored in a single domain, the preferred configuration is to configure the Administration server's SNMP agent as the nexus of communication between the SNMP manager and all other agents in the WebLogic domain. This is accomplished as follows : Under the SNMP folder in the Administration pane, click on the Proxies folder. There are five fields to fill out:
MonitorsThree types of Java Management Extension (JMX) monitors are available:
Log FiltersAll WebLogic serversboth administration and managedlog information about server performance and events into files on their respective local machines. SNMP can monitor these log files and alert if it sees particular text strings. The configuration of these traps is done in the Log Filters folder under SNMP. Most of the configuration values are pretty obvious. Specify the text string that you want to alert on in the "Message Substring" field. Attribute ChangesFinally, it is also possible to configure SNMP to take note when a configuration attribute changes. Under the Attribute Changes menu, click the "Configure a New Attribute Change" link. There are five fields:
Note also that before the new attribute monitoring will go into effect, you need to restart the Administration server. |