OEM Generic service

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)

    5 thoughts on “OEM Generic service

    1. Troy Weeres

      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. laurentschneider Post author

      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. Pingback: Laurent Schneider » Blog Archive » Monitoring the age of the last backup with OEM

    Comments are closed.