To set up a new management rule, perform the following steps:
In the tree component, select the Configuration node.
Select the Management Rules node.
Ensure All Rules is checked.
This enables Management Rules globally. If this is unchecked none of the management rules will be executed.
Select New.
In the Name field, provide a name for this rule. For example, Rule1.
Check Enabled to activate this rule.
Enter a description that identifies this rule
Select the Event Type from the drop-down list.
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: To monitor an attribute of an MBean.
Notification events: Notification events from a custom MBean.
System events:
Lifecycle: Events in the com.sun.appserv.server.LifecycleEvent interface.
Log: Occurs when the specified logger writes a log entry.
Timer: Occurs at the specified date and time, at the specified interval, and so on.
Trace: Occurs on entry and exit of methods of EJBs, web applications, and web services.
Select the Record Event checkbox to log the occurrence of the specified event.
Set the log level for this management rule.
The default is INFO.
Select Next to go to the final part of setting your management rule.
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.