Home > Blogroll, OEM > OEM Generic service

OEM Generic service

December 22nd, 2006 Leave a comment Go to comments

I want to monitor the output of one script in OEM.

Let’s say my script is that easy :


#!/bin/ksh
echo $RANDOM

So I go to

  • OEM 10gR2 Grid Control
  • All Targets
  • Add Generic Service – Go
  • Name : random
  • Select System : EM Website System
  • Define availability based on: Service Test
  • Test Type: custom test
  • Name : random
  • Collection Frequency : 1 minute
  • Command line : /home/oracle/random.sh
  • Username : oracle
  • Password : oracle
  • Add Beacon : oemsrv01_beacon
  • Next – Next – Finish
  • That’s all, your generic service is ready. Wait a bit, you will see this in your targets list. You can then click on perform in your “random” homepage and chose “custom metric 1″ to have a graph of your values ($RANDOM).

    Happy Holidays !

    For those who like free games about skiing with really good graphics, check this :
    Ski Challenge 2007
    go to http://www.tsr.ch/tsr/index.html?siteSect=860020
    click Télécharger le jeu (about 41Mb)

    Tags:
    1. Troy Weeres
      January 8th, 2007 at 13:34 | #1

      Hello Laurent – you almost caught me with the spam protection ;-)

      regarding the post – have you looked into User-defined metrics to do the same thing? there are a couple problem with UDMs but maybe something to look into for the example above.
      Troy

    2. January 17th, 2007 at 13:43 | #2

      Hi Troy,
      Once again, you gave a precious hint. UDM is exactly what I was looking for. Any clue on how to apply an UDM to multiple target?
      Thanks a ton
      Laurent

    3. January 17th, 2007 at 14:33 | #3

      I found it ! A single column user defined metric can be imported in a monitoring template then applied to multiple targets.

      Great!

    4. Troy Weeres
      January 18th, 2007 at 13:52 | #4

      glad you found it helpful. I read your RAC posting with great interest.

    1. January 18th, 2007 at 12:18 | #1
    *