Friday Jan 31, 2014

Friday Spotlight: Ksplice SNMP Plugin

Happy Friday!

Over at our Ksplice Blog (which has one of my favorite taglines, "Rebooting is Obsolete"), Oracle's Tim Hill writes about the new SNMP plug-in for Ksplice, which allows the use of Oracle Enterprise Manager or other SNMP-compatible monitoring solution to monitor Ksplice instances. It's very cool stuff, we hope you check it out.

We'll see you next week!

-Chris 

Friday Jan 03, 2014

Oracle Linux Friday Spotlight - January 3, 2014

Happy Friday and happy new year! Our spotlight this week is on an excellent webcast from our archives titled "Oracle Linux Management Demystified." It describes the integration between Oracle Linux and Oracle Enterprise Manager 12c, allowing you to do provisioning, patching, monitoring, and administration all from a unified console. This is an on-demand webcast, so it will play as soon as you enter your details. Enjoy and we'll see you next week!

View the webcast

-Chris 

Tuesday Aug 20, 2013

Oracle Enterprise Manager 12cR1 Agent Preinstall RPM for Oracle Linux 6 has been released

The Oracle Enterprise Manager Agent Preinstall RPM installs the required software packages and prepares the operating system for Oracle Enterprise Manager Agent deployment. It has recently been made available for both x86_64 and i386 platforms from the ol6_addons repository on the public-yum server and the Unbreakable Linux Network.

The Oracle Management Agent (Management Agent) is one of the core components of Enterprise Manager Cloud Control that is deployed on each monitored host. It is responsible for managing and maintaining the hosts and its targets and communicating that information to the middle-tier Oracle Management Service. The Management Agent also allows you to monitor non-Oracle components (such as third-party databases) through management plug-ins and connectors.

Once the Oracle Enterprise Manager agent is deployed on an operating system, the operating system and applications running on that host can be monitored and manged using the Oracle Enterprise Manager 12c console.

The Oracle Enterprise Manager Agent Preinstall package installs the required software packages and sets system parameters necessary to deploy and run the Oracle Enterprise Manager Agent on Oracle Linux 6. In particular, it performs the following tasks to enable the agent deployment:

  • Installs the required packages like sudo or openssh (via RPM package dependencies which will be resolved by the yum package manager)
  • Creates and configures the oracle user and group accounts
  • Modifies the user hard and soft file limits set in /etc/security/limits.d/
  • Installs sudo configuration templates

This RPM may be installed on an existing physical or virtual Oracle Linux 6 system, or may be included in an Oracle VM Template or Oracle Virtual Assembly. Note that the actual agent installation requires 2 GB of free space and 512 MB swap space, and therefore the system image should be configured to meet these requirements.

A. Installing on physical or virtual Linux machine

  1. Subscribe the system to the Oracle Linux 6 Addons channel in ULN (ol6_addons on public-yum).
  2. Install the RPM via yum:
    yum install oracle-em-agent-12cR1-preinstall
  3. Check that there is at least 2 GB free disk space in the agent install location (e.g. by using "df -h") and at least 512 MB of swap space (e.g. by running "swapon -s")

B. Including the RPM in the system.img disk image inside of an Oracle Virtual Assembly

  1. Place System.img and vm.cfg in the same folder
  2. As the root user, run the following command:
    # modifyjeos -f System.img -a <addrpm.lst> -m <rpm_directory_for_the_os>
    (where addrpm.lst contains the list of additional RPMs to install)
  3. Check if the root partition has a minimum of 2 GB of free disk space. If not, use the following command to increase the free space:
    # modifyjeos -f System.img -T <total new amount of disk space in MB>
  4. Check if there is a minimum of 512 MB of swap space. If not, use the following command to increase the swap space;
    # modifyjeos -f System.img -S <total new amount of swap space in MB>

An Oracle Enterprise Manager installation can be configured such that the Enterprise Manager agent is pushed on the Guest VMs automatically when the Oracle Virtual Assembly is deployed.

To configure the Oracle Management Server (OMS) for automatic agent push, update the following properties in the <OMS_HOME>/sysman/prov/agentpush/agentpush.properties file:

oracle.sysman.prov.agentpush.defaultPdpSetting=/bin/su - %RUNAS% -c "%COMMAND%"
oracle.sysman.prov.agentpush.enablePty=true

Tuesday Nov 13, 2012

OS Analytics with Oracle Enterprise Manager (by Eran Steiner)

Oracle Enterprise Manager Ops Center provides a feature called "OS Analytics". This feature allows you to get a better understanding of how the Operating System is being utilized. You can research the historical usage as well as real time data. This post will show how you can benefit from OS Analytics and how it works behind the scenes.

The recording of our call to discuss this blog is available here:

https://oracleconferencing.webex.com/oracleconferencing/ldr.php?AT=pb&SP=MC&rID=71517797&rKey=4ec9d4a3508564b3

Download the presentation here

See also:

Blog about Alert Monitoring and Problem Notification

Blog about Using Operational Profiles to Install Packages and other content


Here is quick summary of what you can do with OS Analytics in Ops Center:

  • View historical charts and real time value of CPU, memory, network and disk utilization
  • Find the top CPU and Memory processes in real time or at a certain historical day
  • Determine proper monitoring thresholds based on historical data
  • Drill down into a process details

Where to start

To start with OS Analytics, choose the OS asset in the tree and click the Analytics tab.

You can see the CPU utilization, Memory utilization and Network utilization, along with the current real time top 5 processes in each category (click the image to see a larger version):


 In the above screen, you can click each of the top 5 processes to see a more detailed view of that process. Here is an example of one of the processes:


One of the cool things is that you can see the process tree for this process along with some port binding and open file descriptors.

Next, click the "Processes" tab to see real time information of all the processes on the machine:


An interesting column is the "Target" column. If you configured Ops Center to work with Enterprise Manager Cloud Control, then the two products will talk to each other and Ops Center will display the correlated target from Cloud Control in this table. If you are only using Ops Center - this column will remain empty.




The "Threshold" tab is particularly helpful - you can view historical trends of different monitored values and based on the graph - determine what the monitoring values should be:

You can ask Ops Center to suggest monitoring levels based on the historical values or you can set your own. The different colors in the graph represent the current set levels: Red for critical, Yellow for warning and Blue for Information, allowing you to quickly see how they're positioned against real data.

It's important to note that when looking at longer periods, Ops Center smooths out the data and uses averages. So when looking at values such as CPU Usage, try shorter time frames which are more detailed, such as one hour or one day.


Applying new monitoring values

When first applying new values to monitored attributes - a popup will come up asking if it's OK to get you out of the current Monitoring Policy. This is OK if you want to either have custom monitoring for a specific machine, or if you want to use this current machine as a "Gold image" and extract a Monitoring Policy from it. You can later apply the new Monitoring Policy to other machines and also set it as a default Monitoring Profile.

Once you're done with applying the different monitoring values, you can review and change them in the "Monitoring" tab. You can also click the "Extract a Monitoring Policy" in the actions pane on the right to save all the new values to a new Monitoring Policy, which can then be found under "Plan Management" -> "Monitoring Policies".


Visiting the past

Under the "History" tab you can "go back in time". This is very helpful when you know that a machine was busy a few hours ago (perhaps in the middle of the night?), but you were not around to take a look at it in real time. Here's a view into yesterday's data on one of the machines:


You can see an interesting CPU spike happening at around 3:30 am along with some memory use. In the bottom table you can see the top 5 CPU and Memory consumers at the requested time. Very quickly you can see that this spike is related to the Solaris 11 IPS repository synchronization process using the "pkgrecv" command.

The "time machine" doesn't stop here - you can also view historical data to determine which of the zones was the busiest at a given time:


Under the hood

The data collected is stored on each of the agents under /var/opt/sun/xvm/analytics/historical/

  • An "os.zip" file exists for the main OS. Inside you will find many small text files, named after the Epoch time stamp in which they were taken
  • If you have any zones, there will be a file called "guests.zip" containing the same small files for all the zones, as well as a folder with the name of the zone along with "os.zip" in it
  • If this is the Enterprise Controller or the Proxy Controller, you will have folders called "proxy" and "sat" in which you will find the "os.zip" for that controller

The actual script collecting the data can be viewed for debugging purposes as well:

  • On Linux, the location is: /opt/sun/xvmoc/private/os_analytics/collect

If you would like to redirect all the standard error into a file for debugging, touch the following file and the output will go into it:

# touch /tmp/.collect.stderr  

The temporary data is collected under /var/opt/sun/xvm/analytics/.collectdb until it is zipped.

If you would like to review the properties for the Analytics, you can view those per each agent in /opt/sun/n1gc/lib/XVM.properties. Find the section "Analytics configurable properties for OS and VSC" to view the Analytics specific values.

I hope you find this helpful! Please post questions in the comments below.

Eran Steiner


About

Get the latest updates on strategy, products, events, news, customers, partners and all things Oracle Linux! Connect with Oracle's Linux experts.

Stay Connected

Twitter


Facebook

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
5
6
7
8
9
12
13
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today