Weblogic monitoring shell script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Weblogic monitoring shell script
# 1  
Old 03-01-2007
Weblogic monitoring shell script

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,
# 2  
Old 03-01-2007
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,
http://www.nagios.org
One of the better (free) answers to your question(s).
# 3  
Old 03-02-2007
I belive a grep will do for finding the weblogic server/services and you can use mailx command to send an email when it is not running..

Soemthing like this..

while :
do
[[ ps -ef | grep -q 'weblogic' ]] || { mailx "Web logic not running!!" abc@abc.com; break; }
sleep 5
done
# 4  
Old 03-02-2007
Quote:
Originally Posted by jacoden
I belive a grep will do for finding the weblogic server/services and you can use mailx command to send an email when it is not running..

Soemthing like this..

while :
do
[[ ps -ef | grep -q 'weblogic' ]] || { mailx "Web logic not running!!" abc@abc.com; break; }
sleep 5
done
This is great. But most of these Application Servers do wind up running, but 'not responding' from time to time. This usually requires actually formulating a test query of some sort, and checking that you get the answer you require.
# 5  
Old 03-02-2007
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Server monitoring using shell script

I want to write a shell script which is used in cron job and it runs every 4 hours to check whether tomcat servers are running or not . If servers are not running , one email should be triggered like alert notification. if servers are Running then no need to print anything. This is what i want... (5 Replies)
Discussion started by: kk123
5 Replies

2. Shell Programming and Scripting

Shell Monitoring Script

Hi guys, I didn't understand this monitoring script request - I don't ask for the script result. If you understand the request, I'm just asking an explanation to simplify it for me. THE Script Request: Our organization keeps various files in directories structured as... (2 Replies)
Discussion started by: moshesa
2 Replies

3. Shell Programming and Scripting

Shell script to find weblogic home directory

Hi, I am trying to find the weblogic home directory whether it is installed in the Linux box. if it is existing display the weblogic home and the corresponding Java home directory else display message as that wl home does not exist. I already wrote a program but it was not working properly.... (11 Replies)
Discussion started by: spgreddy
11 Replies

4. Shell Programming and Scripting

Help needed with a shell script for deploying ear file to a weblogic server using WLST

Hi, Please help me through a shell script to run from command prompt using WLST for the below purpose: Automation process: >Check the availability of an application. >Stops the EAR if it already exists in Weblogic Server >Undeploys/Delete the project (EAR file) >Deploys the new ear file... (2 Replies)
Discussion started by: Amulya
2 Replies

5. Shell Programming and Scripting

Shell script for process monitoring

Im having a bit of troble coming up with a script that does this monitors processes to see if they die, if they do die, restart the process and write out to a log file that the process was restarted with the new PID and the date and time the new process was launched. Any suggestions? (1 Reply)
Discussion started by: jspinal
1 Replies

6. Shell Programming and Scripting

Monitoring Tomcat Instance using shell script

Hello Forum, I have prepared script to monitor the tomcat status. Following is the script which will monitor tomcat instance.I need little modifcation in the script. My script will grep for java,the output of grep command will analyze by if condition under for loop and will send following echo... (7 Replies)
Discussion started by: coolguyamy
7 Replies

7. Shell Programming and Scripting

Shell Script for monitoring File system.

Hi, need help to write one shell script to monitor UNIX file systems and if any changes happend like deletion of any file, adding new file, time stamp changed, permisson changed etc. Script need to send alert mail to defined person/mail id. I request someone to help me to create the... (1 Reply)
Discussion started by: vjauhari
1 Replies

8. Shell Programming and Scripting

shell script for monitoring users activities

hi I need a shell script which runs perpetually in background and monitors different aspects of different users on different files and their usages for example say there r 3 users so i want when they log in i.e. their log in time and their file access, modify and change log of each file of a... (3 Replies)
Discussion started by: rrd1986
3 Replies

9. Shell Programming and Scripting

Get the STATE of the weblogic instances via shell script.

Can I get the STATE(instance are RUNNING or not and HEALTH is OK or not) of the weblogic instances(Admin and Managed) running on my unix machine via shell script. Someone told me that it can be done via "weblogic.Admin GETSTATE"....but it is not working for me(might be I am doing something wrong)... (2 Replies)
Discussion started by: joshilalit2004
2 Replies
Login or Register to Ask a Question