High Availbility

OS & Virtualization

Friday, November 23, 2007

User Defined Metrics

Oracle Enterprise Manager 10g

You can monitor a OS process using Oracle Enterprise Manager. Here are the steps which I use to monitor the memory usage on a Linux box.


Steps


  1. write a script eg "getmem.sh"

  2. export em_result = `freegrep Memawk {'print $3'}`
    echo em_result=$em_result

  3. Login to Grid Control > Targets > > User-Defined Metrics

  4. Create an User Defined Metric to run the shell script.

Note : you need to use "em_result=....." where em_result is the keyword.