Quote:
Originally Posted by tungaw2004
HI,
I'm new in unix. I would like to know if you have a ready script for monitoring the weblogic and managed servers. I want to have a script that checks the weblogic once in a while if it's up and running. if not running, will send an email to me. any idea?
please help me. i will appreciate that very much.
thanks,
I am not going to write the exact script for you but in order for a robust script you need to take care of many steps:
1. Check the process related to "weblogic" is running.
2. ping to the host (admin and managed servers) to make sure they are alive.
3. Now even if (1) above returns the process, many times the servers are just hung, so use "weblogic.Admin" command line utility to do a weblogic PING.
E.g java weblogic.Admin -url AdminHost:7001 -username weblogic
-password weblogic PING 10
4. If (3) is alive and returns good, then u r good.