BEA Logo BEA WebLogic Server Release 6.1

  BEA Home  |  Events  |  Solutions  |  Partners  |  Products  |  Services  |  Download  |  Developer Center  |  WebSUPPORT

 

  |  

  WebLogic Server Doc Home   |     WebLogic SNMP Management Guide   |   Previous Topic   |   Next Topic   |   Contents   |   Index   |   View as PDF

Trap Notifications

 

This section discusses the following topics:

 


Overview of WebLogic SNMP Trap Types

A report of the occurrence of an event or crossing of a threshold, sent to an SNMP manager by an SNMP agent, is called a trap notification. There are several types of trap notification that the WebLogic SNMP agent software can generate:

This section describes how to set up the WebLogic SNMP agent to generate these various types of trap notification. For information on how to set up the destinations where trap notifications are to be sent, refer to Using SNMP to Manage WebLogic Server.

 


SNMP Trap Format

The SNMP standard defines a trap notification sent to a manager as a protocol data unit (PDU) with the fields indicated in Figure 2-1.

Figure 2-1 SNMP Trap Packet


 

The fields have the following meaning:

Note: The enterprise OID used by the WebLogic 6.1 SNMP agent differs from the enterprise OID used with the WebLogic 5.1 SNMP agent. The enterprise OID for WebLogic 6.1 is .1.3.6.1.4.140.625.

WebLogic Specific Trap Types

The following table describes the specific trap types for the enterpriseSpecific traps generated by the WebLogic SNMP agent.

Table 2-1 WebLogic Specific Trap Types

WebLogic Specific Trap Number



Type of Trap



Meaning

60

Log Message Trap

Generated when a message is logged at a server that matches the user-defined criteria for a sending a log notification trap.

65

serverStart Trap

Generated when the agent detects that a Managed Server is up that was formerly down.

70

serverShutDown Trap

Generated when the agent detects that a Managed Server that was up is now down.

75

Monitor Trap

Generated when a user-defined JMX monitor detects the crossing of a threshold or occurrence of an event, as defined by the user.

80

Attribute Change Trap

Generated when the agent detects that an attribute selected by the user has changed in value.

Predefined WebLogic SNMP Traps

The WebLogic SNMP agent generates the following generic traps automatically:

All other trap notifications generated by the WebLogic SNMP agent are enterprise-specific traps (generic type 6).

The following enterpriseSpecific trap notifications are also generated automatically by the agent:

 


Attribute Change Traps

To set up the WebLogic SNMP agent to notify your SNMP agent when a selected WebLogic configuration attribute has changed, do the following:

  1. Invoke the Administration Console (if it is not already running).

  2. Select SNMP—>Traps—>SNMP Attribute Changes in the left pane. This invokes the attribute change table. This table lists the filters that you have created to send SNMP traps when the agent detects a change on a selected configuration attribute. There is one filter in the table for each configuration attribute that the agent is monitoring.

  3. To create a new attribute change filter, select the Create a new Attribute Change link to invoke the Attribute Change screen. Fill out the fields on this screen as follows:

  4. Click Apply to create the new attribute change filter.

  5. To activate the new attribute change filter, restart the Administration Server.

An attribute change trap notification includes the following name/value pairs in the variable bindings:

Note: Creation of monitors for changes in run-time attributes is not supported. Only attributes in the configuration MIB can be monitored for change of attribute value.

 


Log Message Traps

The WebLogic logging subsystem logs messages into a local log at each WebLogic Server. The SNMP agent can register a log message filter on a local server which selects log messages that the agent wants to be notified about. When a log message is generated on the local WebLogic Server that satisfies the filter, a JMX log notification is sent to the agent and the agent generates an SNMP log notification trap.

You can define the log notification filter to select log messages based on the following attributes of the log message:

Creating a Log Notification Filter

To create a log notification filter, do the following:

  1. Invoke the Administration Console (if it isn't running already)

  2. Select SNMP—>Traps—>SNMP Log Filters in the left pane. This invokes the SNMP Log Filter table, which lists all the filters that you have registered with local servers.

  3. To create a new log filter, select the Create a new Log Filter link to invoke the SNMP Log Filter screen. You will need to fill out the fields on this screen as follows:

  4. Click Apply to create the new log message filter.

  5. Restart the Administration Server to activate the new log message filter.

Variable Bindings in Log Message Traps

The attributes of the log message are passed to the SNMP manager in the variable bindings of the trap. Log notification traps have the following name/value pairs on the variable bindings:

For more information on log messages and the WebLogic Server logging subsystem, see the WebLogic Server Administration Guide.

 


Monitor Traps

The WebLogic SNMP agent allows you to configure Java Management Extension (JMX) monitors to poll WebLogic resources at a specified interval to check for the occurrence of conditions or the crossing of thresholds, as defined by you, the user. When a user-defined monitor detects the specified condition, a trap notification is sent to the SNMP manager. This feature allows you to offload polling of WebLogic resources from the SNMP management station to the WebLogic Administration Server.

You can configure three types of JMX monitor:

Configuring a Counter Monitor

To set up a JMX counter monitor, do the following:

  1. Invoke the Administration Console (if it is not already running).

  2. Select SNMP—>Traps—>Monitors—>SNMP Counter Monitors in the left pane. This invokes the counter monitor table. This table lists all the counter monitors that you have already configured.

  3. To create a new counter monitor, select the Create a new Counter Monitor link to invoke the Counter Monitor screen.

  4. On the Counter Monitor page, enter a name for the monitor instance in the Name field.

    BEA Systems recommends that you choose a name that indicates the resource that is being monitored.

  5. Enter values in the Monitored MBean Type, Monitored Attribute Name, and (optionally) Monitored MBean Name fields.

    For example, if you want to monitor the ActiveConnectionsHighCount attribute of the JDBCConnectionPoolRuntime MBean for a JDBC connection pool name MyPool:

  6. In the Polling Interval field, enter the frequency in seconds at which you want WebLogic Server to check the attribute's value.

    For testing purposes, consider entering a small value, such as 10.

    A value of 0 means that the monitor never polls the attribute, effectively disabling this monitor.

  7. Enter data in the remaining fields as described in the next section, Typical Configurations for Counter Monitors.

  8. Click Create.

  9. Click the Servers tab.

  10. From the Available column, select the servers on which you want to monitor the selected attribute. Then click the right arrow to move the selected servers to the Chosen list.

    If you are configuring a monitor for a domain-wide resource, such as a JDBC Connection Pool, select the Administration Server.

  11. Click Apply.

  12. Restart the Administration Server.

Typical Configurations for Counter Monitors

The following list describes how to achieve typical configurations of a Counter Monitor instance by entering data on the Counter Monitor page:

Configuring a Gauge Monitor

To set up a JMX gauge monitor, do the following:

  1. Invoke the Administration Console (if it is not already running).

  2. Select SNMP—>Traps—>Monitors—>SNMP Gauge Monitors in the left pane. This invokes the gauge monitor table. This table lists all the gauge monitors that you have already configured.

  3. To create a new gauge monitor, select the Create a new Gauge Monitor link to invoke the Gauge Monitor screen. You will need to fill out the fields on this screen as follows:

  4. Select Apply to create the new gauge monitor.

  5. Restart the Administration Server to activate the new monitor.

Configuring a String Monitor

To set up a JMX string monitor, do the following:

  1. Invoke the Administration Console (if it is not already running).

  2. Select SNMP—>Traps—>Monitors—>SNMP String Monitors in the left pane. This invokes the string monitor table. This table lists all the string monitors that you have already configured.

  3. To create a new string monitor, select the Create a new String Monitor link to invoke the String Monitor screen. Fill out the fields on this screen as follows:

  4. Select Apply to create the new string monitor.

  5. Restart the Administration Server to activate the new string monitor.

Variables Included with Monitor Trap

A JMX monitor polls for a specified threshold or condition and the agent generates a monitor trap when the specified threshold is crossed, or the specified condition occurs. The WebLogic SNMP agent includes the following name/value pairs in the variable bindings of each monitor trap:

 


Disabling Trap Generation

When you create an entry for a particular type of trap such as a log filter trap or JMX monitor trap, generation of such traps is only activated once the Administration Server is restarted. However, for any trap request that you have created, you can de-activate the trap generation dynamically via the Administration Console (or the weblogic.Admin command line interface).

When you enable trap generation for a particular type of trap, you create an entry in the table for that type of trap that is displayed in the Administration Console. To de-activate that trap, simply delete the entry in the trap table. Thus, if you have created a JMX counter monitor to poll for a specified condition, you can turn off that monitor by deleting the entry for that counter monitor in the table at SNMP—>Traps—>Monitors—>SNMP Counter Monitors.

 

back to top previous page next page