Registering the Script as a User-Defined Metric

Once you have created the monitoring script (or determined the SQL queries or function calls to be used in the case of SQL user-defined metrics), you are ready to add this monitoring functionality to Enterprise Manager as a user-defined metric.

Important: For OS user-defined metrics, make sure the Management Agent is up and running on the machine where the monitoring script resides before creating the user-defined metric.

To create the user-defined metric:

  1. From the Related Links area of any Host or Database target homepage, choose User-Defined Metrics. The User-Defined Metrics summary page appears containing a list of previously defined user-defined metrics. From this page, you perform edit, view, delete, or create like functions on existing user-defined metrics.

  2. Click Create. The Create User-Defined Metric page appears.

  3. Enter the requisite metric definition, threshold, and scheduling information. For SQL user-defined metrics, you must also enter the SQL query or function call.

  4. Click OK. The User-Defined Metric summary page appears with the new user-defined metric appended to the list.

Usage Tips

For SQL User-defined Metrics, click Test on SQL UDM page to ensure the script can be executed successfully.

If the User-defined Metric has been created and the severity has not been updated recently, it is possible that there are metric errors associated with the User-defined Metric execution. In this situation, go to Metric Errors subtab under Alerts tab to check.

Related Topics

User-Defined Metric Example

About User-defined Metrics

Creating Your Monitoring Script

Enterprise Manager Information Roadmap