### To Create a New Management Rule

To set up a new management rule, perform the following steps:

1. In the tree component, select the Configuration node.

2. Select the Management Rules node.

3. Ensure All Rules is checked.

   This enables Management Rules globally. If this is unchecked none of the management rules will be executed.

4. Select New.

5. In the Name field, provide a name for this rule. For example, `Rule1`.

6. Check Enabled to activate this rule.

7. Enter a description that identifies this rule

8. 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.

9. Select the Record Event checkbox to log the occurrence of the specified event.

10. Set the log level for this management rule.

    The default is `INFO`.

11. 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.