Written by Porus Homi Havewala We are looking at the General Monitoring capabilities of Enterprise Manager, as experienced by Enterprise Manager Administrators or Cloud Administrators. Part III was here . As the next step, we will see how to apply a Corrective Action to a typical database error that can be alerted by Enterprise Manager. Select Host..Monitoring..Metric and Collection Settings from the Host Target menu. Select Metrics with thresholds from the drop down menu, and locate the Alert Log section. There are certain errors that are monitored out-of-the-box. One of the important errors is the Archiver Hung Alert Log Error. This is triggered when the database can no longer generate archive logs for some reason (lack of space as an example), all transactions have stopped and the database is hung. This is a serious error and will show up in the Alert Log of the database, which is being monitored by Enterprise Manager. Click on the Multiple Edit icon in the Edit column. We can see how Enterprise Manager uses a regular expression to monitor the contents of the Alert Log for a certain error. Click on the Edit button in the Monitored Objects section. This page shows that there are no Corrective Actions currently set for this Alert. It is at this point that we can add a Corrective Action. Click on the Add button next to Critical in the above screen. The Add Corrective Action page appears. We can now select a corrective action from the drop down box, including selecting a pre-saved action from the Corrective Action library. As an example, we can perform a Corrective Action to backup the existing archive logs, deleting them after they are backed up - all in an RMAN script. The same script would need to cross check all the archive logs and delete the expired logs from the RMAN catalog. This would make the space available again. Another solution would be to use a SQL script to check the available Fast Recovery Area (FRA) free space and increase the FRA, if need be. Measures such as these will be able to free up space and resolve the Archiver Stuck Error. Metric Extensions and Monitoring Templates We have seen different types of metrics, that are provided out-of-the-box in Enterprise Manager. In addition to these, you can also set up and deploy your own customized metrics - known as Metric Extensions. Select Enterprise ..Monitoring..Metric Extensions. This displays the following screen. On this page, you can search for and create new Metric Extensions (in essence a query that returns some data). You can test these against targets, by deploying them as a draft, and then publishing them. If you want to apply a group of monitoring settings to multiple targets, then you can do so using Monitoring Templates. This is a way to standardize monitoring across multiple targets. Select Enterprise..Monitoring..Monitoring Templates. This bring up the following screen. Enterprise Manager supplies Oracle Certified templates for various targets as can be seen in the list. Simply select "Display Oracle Certified templates" and click on Go to see this list. You are not able to edit these templates, but you can Apply them on various targets via the Apply button. As an example, the "Oracle Certified-Enable Database Security Configuration Metrics" template is applicable to Database Instance Target Types, and the data collected using these metrics is used for Security Compliance Standards and Security Reports. The metrics are collected every 24 hours, for example: Access To Important Tables and Views, ALL/ANY Privileges, DBA Group Assignment and so on. You can use the Create button to create your own monitoring template, or the "Create Like" button to create a copy of an Oracle Certified template or another template. During creation, via a checkbox, you can make your template the default template for the particular target type. If this is done, the template will be applied automatically to newly discovered targets of that type. This is a good way to apply company-wide standards for monitoring of particular target types. Other Monitoring Concepts Administration Groups are a new kind of Target Groups that were added to Enterprise Manager Cloud Control 12c. They allow management settings of the group to be automatically applied to any new target that is added to the group. The management settings include monitoring settings, compliance standards and cloud policies. These management settings are defined in a Template Collection. Select Enterprise..Monitoring..Template Collections. As the graphical workflow shows, it is possible to add targets to an Administration Group simply by the Administrator setting one of the target properties, for example, the Lifecycle Status. If the Lifecycle Status is set to Test, the target is added automatically to the Test Administration group. If set to Production, it is added to the Production group. In Part V of this article, we will continue looking into Administration groups, and then look at the remaining general monitoring capabilities of Enterprise Manager.
↧