Author: Subir Paul
SQL based Metric Extensions:
Purpose: How to create SQL based Metric Extensions (ME) in OEM 12c
Ex: Here SQL based ME is used for generating alert if any/all of Concurrent Managers are down
Steps:
>>Log on to OEM 12c using sysman/ or any user with system administrator role /
user with atleast Resource Type Privileges: Create Metric Extension
>> Enterprise → Monitoring → Metric Extensions
1.) In General Properties:
Target Type: Cluster Database
Name: Conc_Manager_status_check
Display Name: Concurrent Manager Status Check
Adapter: SQL
Description: Concurrent Managers are up or not
U 2.) Adapter:
SQL Query:
Write the SQL statement in SQL query
U 3.) Columns:
Name: Concurrent_Manager_Status
Display Name: Concurrent Manager Services Status
Column Type: Data Type
Value Type: Number
Comparison Operator: !=
Critical: 0
Alert Message: All or some of the Concurrent Managers are down.
Metric Category: Availability
U 4.) Credentials:
You can choose “Use Default Monitoring Credentials” or “Specify Credential Set”. Here I have selected
“Specify Credential Set” myCustomDBCreds which is customized.
5.) TEST :
U U
Add the desired Target (Target Type: ‘Cluster Database’ for RAC or Database Instance for non RAC DB) by
clicking “Add”
Click on “Run Test”
The Desired Output will be displayed as shown above.
U 6.) Review :
Review once all the fields and then click “submit” if everything is OK else click on Back to make the
necessary changes.
A pop up as “Confirmation “appears which shows that means Metric Extension has been created
successfully.
The status of ME is now Editable
Select ME$Conc_Manager_status_check then go to Actions → Save as Deployable Draft
Again Select ME$Conc_Manager_status_check then goto Actions → Deploy to Targets
Click on “Add” and select Target Name: [Link] and click on “Submit”
A popup as “Confirmation” appears which shows that the Metric Extension has been successfully
deployed for the selected target name.
Goto Enterprise → Monitoring → Metric Extensions
Select ME$Conc_Manager_status_check then goto Actions → Publish Metric Extension
once published, other users are able to see the created Metric Extension.
To Check ,goto Targets --> All Targets
select the Target type
go to “metric and policy settings” and check whether that ME is reflecting there or not.
Alert will be generated once the output of SQL query is not equal to zero.
A sample alert is shown below
Reference: [Link]
2TU U2T
= = = = THANKS = = = =