1 Reply Latest reply on Nov 25, 2016 10:02 AM by Kanda-Oracle

    Script to Monitor oacore alerts

    user7202581

      Hi,

       

      We have a custom shell script to monitor the OA Core Alerts.

      [aperfprd@cgreupaio07prd ~]$ cat /erfprd/appl/shared/OACore_High_CPU/oacore_utilization_cpu.sh

      #rm -rf /erfprd/appl/shared/OACore_High_CPU/Result.log

      val="$(top -b -n 1 | grep java | head -1 | awk '{print $9}' | awk '{printf "%.0f\n", $1}')"

      if [ $val -gt 100 ]; then

      sed -i '1i 1' /erfprd/appl/shared/OACore_High_CPU/Result.log

      else

      sed -i '1i 0' /erfprd/appl/shared/OACore_High_CPU/Result.log

      fi

      [aperfprd@cgreupaio07prd ~]$

       

      The objective of this script is to get alerts when there is High CPU utilization.

      But for some reason its not working.

       

      Can you please advise?

       

      Regards,

      VN