Monthly Archives: January 2018

Start/Stop Always On Monitoring in Enterprise Manager 13c

Oracle Enterprise Manager 13c  ensures [24×365] monitoring of your Applications/Databases/Hosts.  – by  “Always-On Monitoring

Last Week in my company we moved one step ahead in our Monitoring strategy, where we enabled the HAA for our Monitoring tool “Oracle Enterprise Manager 13c Cloud Control”. This was accomplished by enabling “Always-On Monitoring”.

Always-On Monitoring provides the capability of monitoring all or a specific list of targets using the same EM agents already deployed to these targets during complete downtime of the EM environment. It is especially useful for monitoring critical targets during planned EM downtime such as patching and/or upgrades.

AOM will synchronize with EM for data such as notification contacts and is able to take the alerts from the EM agents and send email notifications to the identified downtime contacts. If you already have AOM configured in your environment, I have listed some steps how easily you can start, stop and Sync it with your OEM Environment.

Before I come to steps to be followed, I have mentioned two important points which I  personally follow in my company. We have Production and Non-Production Infrastructure Maintenance Activity Scheduled every month, so to make sure my monitoring is still on I do below mentioned.

NOTE 1: Please start AOM services after every non-prod maintenance activity but Don’t “enable notifications”.
NOTE 2: At the time of “Production Maintenance”, enable the AOM Notifications before shutting down Production OEM.

So from above two you notes you might have understood by now that my OEM Application and AOM is configured in two different servers in different environments { OEM in prod and AOM in non-prod } so the one of them is always monitoring my applications, databases, servers and other stuff, when any maintenance activity is going on.

Step 1: Synchronizing your AOM with OEM is a one time process and you can do that using “emsctl sync” command.

[oracle@houoemap2 ~]$ cd $EMS_HOME
[oracle@houoemap2 ems]$ pwd
/data2/AOM/ems
[oracle@houoemap2 ems]$ cd scripts/

[oracle@houoemap2 scripts]$ ./emsctl sync
Oracle Enterprise Manager Cloud Control 13c Release 2
Copyright (c) 2015, 2016, Oracle Corporation.  All rights reserved.
——————————————————————
Connecting to Always-On Monitoring Repository.
Starting synchronization with Enterprise Manager.
Synchronizing with Enterprise Manager repository: sysman@hanoemap1.emdksharma.com:1521:OEMPRD
Synchronizing Targets data.
Synchronizing Alerts and Availability data.
Synchronizing Notification Metadata data.
Synchronizing Target Metric Metadata data.
Synchronization complete at : Fri Jan 05 08:49:30 CST 2018

Step 2: Check Status if AOM, if its up or not.

[oracle@houoemap2 scripts]$ ./emsctl status
Oracle Enterprise Manager Cloud Control 13c Release 2
Copyright (c) 2015, 2016, Oracle Corporation.  All rights reserved.
——————————————————————
Unable to contact Always-On Monitoring.
Always-On Monitoring process 13768 is not running.

Step 3: Start AOM instance if its not running

[oracle@houoemap2 scripts]$ ./emsctl start
Oracle Enterprise Manager Cloud Control 13c Release 2
Copyright (c) 2015, 2016, Oracle Corporation.  All rights reserved.
——————————————————————
Starting Always-On Monitoring.
Waiting for process to start
Retrying…
Notifications Enabled                       : false
Total Downtime Contacts Configured          : 4
Always-On Monitoring is up.

Step 4: Verify status if all services have been started and connection has been established.

[oracle@houoemap2 scripts]$ ./emsctl status
Oracle Enterprise Manager Cloud Control 13c Release 2
Copyright (c) 2015, 2016, Oracle Corporation.  All rights reserved.
——————————————————————
Always-On Monitoring Version                : 13.2.0.0.0
Always-On Monitoring Home                   : /data2/AOM/ems
Started At                                  : January 5, 2018 8:50:41 AM CST
Last Repository Sync                        : January 5, 2018 10:48:33 AM CST
Upload URL                                  : https://houoemap2.emdksharma.com:8081/upload
Always-On Monitoring Process ID             : 22976
Always-On Monitoring Repository             : houoemap2.emdksharma.com:1521:AOMTST
Enterprise Manager Repository               : hanoemap1.emdksharma.com:1521:OEMPRD
Notifications Enabled                       : false
Total Downtime Contacts Configured          : 4

The above status shows that your AOM instance is now up and running but the Notifications are not enabled yet.

Step 5: Make sure you Enable Notifications when you OEM is down for maintenance and disable them once OEM is back.

[oracle@houoemap2 scripts]$ ./emsctl enable_notification
Oracle Enterprise Manager Cloud Control 13c Release 2
Copyright (c) 2015, 2016, Oracle Corporation.  All rights reserved.
——————————————————————
Notifications have been enabled.  There are downtime contacts configured.
Connecting to Always-On Monitoring Repository.
Starting synchronization with Enterprise Manager.
Synchronizing with Enterprise Manager repository: sysman@hanoemap1.emdksharma.com:1521:OEMPRD
Synchronizing Targets data.
Synchronizing Alerts and Availability data.
Synchronizing Notification Metadata data.
Synchronizing Target Metric Metadata data.
Synchronization complete at : Fri Jan 05 08:56:31 CST 2018

[oracle@houoemap2 scripts]$ ./emsctl status
Oracle Enterprise Manager Cloud Control 13c Release 2
Copyright (c) 2015, 2016, Oracle Corporation.  All rights reserved.
——————————————————————
Always-On Monitoring Version                : 13.2.0.0.0
Always-On Monitoring Home                   : /data2/AOM/ems
Started At                                  : January 5, 2018 8:50:41 AM CST
Last Repository Sync                        : January 5, 2018 10:55:37 AM CST
Upload URL                                  : https://houoemap2.emdksharma.com:8081/upload
Always-On Monitoring Process ID             : 22976
Always-On Monitoring Repository             : houoemap2.emdksharma.com:1521:AOMTST
Enterprise Manager Repository               : hanoemap1.emdksharma.com:1521:OEMPRD
Notifications Enabled                       : true
Total Downtime Contacts Configured          : 4

[oracle@houoemap2 scripts]$ ./emsctl disable_notification
Oracle Enterprise Manager Cloud Control 13c Release 2
Copyright (c) 2015, 2016, Oracle Corporation.  All rights reserved.
——————————————————————
Notifications have been disabled.
[oracle@houoemap2 scripts]$