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:
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.
Click Create. The Create User-Defined Metric page appears.
Enter the requisite metric definition, threshold, and scheduling information. For SQL user-defined metrics, you must also enter the SQL query or function call.
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.
Creating Your Monitoring Script
Enterprise Manager Information Roadmap
Copyright © 1996, 2007, Oracle. All rights reserved.