To set up a new management rule, perform the following steps:
This enables Management Rules globally. If this is unchecked none of the management rules will be executed.
The Event Type specifies the condition to execute the rule. All events are based on the JMX notification mechanism. You can create a custom event by using MBeans that implement javax.management.NotificationBroadcaster/NotificationEmitter.
The following event types are available:
Monitor events: Monitors an attribute of an MBean. Monitor events have similar capabilities to javax.management.monitor package capabilities. In addition to monitoring simple attributes, as Java SE 5 javax.management.monitor does, monitor events also support monitoring complex attributes.
Notification events: Notifies of events from a custom MBean. Use these events to write custom events and thus extend the event dictionary. Any MBeans which can emit a notification can be an event.
System events:
Lifecycle: Events for sever startup, showdown, and termination.
Log: Events triggered when the specified logger writes a log entry. For example, you could create a management rule to send an alert to an administrator when an EJB container logger logs a SEVERE log entry.
Timer: Events triggered at the specified date and time, at the specified interval, and so on. These events have capabilities similar to the javax.management.timer package.
Trace: Events triggered on Entry and Exit of HTTP/IIOP request methods, EJB methods, and Web methods. For example, you can design a servlet filter used to log interactions with a servlet as a management rule using Web method Entry and Exit events.
Cluster: Events triggered when a cluster or instance starts, stops, or fails. These events use the Group Management System cluster monitoring.
The default is INFO.
The subsequent administration screens will depend on the type of event you have selected:
If you specified a Monitor event, see To Configure Monitor Event Properties.
If you specified a Notification event, see To Configure Notification Event Properties.
If you specified a lifecycle event, see To Configure Lifecycle Event Properties.
If you specified a log event, see To Configure Log Event Properties.
If you specified a timer event, see To Configure Timer Event Properties.
If you specified a trace event, see To Configure Trace Event Properties.