RE: Tomcat monitoring scripts

2005-01-13 Thread Rajaneesh
Another simple way is to have start a tomcat once in 2 min using a shell
script. If tomcat instance is already
running then the ports are in use which prevents the another tomcat instance
running.

But in this case If the tomcat hangs and the port is in use by other
application, there is no means to restart it
and monitoring of tomcat is not attached here.

Regards
Rajaneesh

-Original Message-
From: Faisal Abdullah [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 13, 2005 9:29 AM
To: Tomcat Users List
Subject: Re: Tomcat monitoring scripts


On demand restarts with:
http://wrapper.tanukisoftware.org





On Wed, 12 Jan 2005 16:50:54 +, Didier McGillis
[EMAIL PROTECTED] wrote:
 btw the script I would use as a starting point, it doesnt work quite right
 on my system but I was looking for a starting point.

 From: Didier McGillis [EMAIL PROTECTED]
 Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
 To: [EMAIL PROTECTED], tomcat-user@jakarta.apache.org
 Subject: Re: Tomcat monitoring scripts
 Date: Wed, 12 Jan 2005 16:22:52 +
 
 Ch-Check this out.
 Shell script
 http://www.wespoke.com/archives/000728.php
 
 From: Edd Dawson [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Tomcat monitoring scripts
 Date: Wed, 12 Jan 2005 15:20:53 +
 
 I'm looking more for something that sits on the actual servers and
probes
 at set intervals and takes remedial action if necessary.. i just
wondered
 if anyone had documented doing such a thing before.
 
 Peter Lin wrote:
 
 JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with
 tomcat4 or older. in terms of restarting, you're probably going to
 have to write a shell script to do that. Typically, on unix a cron job
 is used.
 
 peter
 
 
 On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson
 [EMAIL PROTECTED] wrote:
 
 
 Hi
 
 Does anyone know of the location of any scripts (for Linux) that will
 monitor tomcat every x minutes and if it finds it not running will
 restart it automatically?
 
 Any suggestions would be appreciated.
 
 thanks
 Edd
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
 --
 Edd Dawson
 Head of Development
 
 MitchellConnerSearson
 3-5 High Pavement
 The Lace Market
 Nottingham  NG1 1HF
 Tel +44 (0)115 959 6455
 Fax +44 (0)115 959 6456
 Direct +44 (0)115 959 6463
 www.choosemcs.co.uk http://www.choosemcs.co.uk/
 
 Confidentiality: This e-mail and its attachments are intended for the
 above named only and may be confidential. If they have come to you in
 error you must take no action based on them, nor must you copy or show
 them to anyone; please reply to this e-mail and highlight the error.
 
 Security Warning: Please note that this e-mail has been created in the
 knowledge that Internet e-mail is not a 100% secure communications
medium.
 We advise that you understand and observe this lack of security when
 e-mailing us.
 
 Viruses: Although we have taken steps to ensure that this e-mail and
 attachments are free from any virus, we advise that in keeping with good
 computing practice the recipient should ensure they are actually virus
 free.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
There are many ways of going forward, but there is only one way of
standing still.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat monitoring scripts

2005-01-13 Thread Didier McGillis
I have this running on my dev, and so far i have not had any issues with it.
From: Faisal Abdullah [EMAIL PROTECTED]
Reply-To: Faisal Abdullah [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Tomcat monitoring scripts
Date: Thu, 13 Jan 2005 11:59:03 +0800
On demand restarts with:
http://wrapper.tanukisoftware.org


On Wed, 12 Jan 2005 16:50:54 +, Didier McGillis
[EMAIL PROTECTED] wrote:
 btw the script I would use as a starting point, it doesnt work quite 
right
 on my system but I was looking for a starting point.

 From: Didier McGillis [EMAIL PROTECTED]
 Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
 To: [EMAIL PROTECTED], tomcat-user@jakarta.apache.org
 Subject: Re: Tomcat monitoring scripts
 Date: Wed, 12 Jan 2005 16:22:52 +
 
 Ch-Check this out.
 Shell script
 http://www.wespoke.com/archives/000728.php
 
 From: Edd Dawson [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Tomcat monitoring scripts
 Date: Wed, 12 Jan 2005 15:20:53 +
 
 I'm looking more for something that sits on the actual servers and 
probes
 at set intervals and takes remedial action if necessary.. i just 
wondered
 if anyone had documented doing such a thing before.
 
 Peter Lin wrote:
 
 JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work 
with
 tomcat4 or older. in terms of restarting, you're probably going to
 have to write a shell script to do that. Typically, on unix a cron 
job
 is used.
 
 peter
 
 
 On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson
 [EMAIL PROTECTED] wrote:
 
 
 Hi
 
 Does anyone know of the location of any scripts (for Linux) that 
will
 monitor tomcat every x minutes and if it finds it not running will
 restart it automatically?
 
 Any suggestions would be appreciated.
 
 thanks
 Edd
 
 
-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
 --
 Edd Dawson
 Head of Development
 
 MitchellConnerSearson
 3-5 High Pavement
 The Lace Market
 Nottingham  NG1 1HF
 Tel +44 (0)115 959 6455
 Fax +44 (0)115 959 6456
 Direct +44 (0)115 959 6463
 www.choosemcs.co.uk http://www.choosemcs.co.uk/
 
 Confidentiality: This e-mail and its attachments are intended for the
 above named only and may be confidential. If they have come to you in
 error you must take no action based on them, nor must you copy or show
 them to anyone; please reply to this e-mail and highlight the error.
 
 Security Warning: Please note that this e-mail has been created in the
 knowledge that Internet e-mail is not a 100% secure communications 
medium.
 We advise that you understand and observe this lack of security when
 e-mailing us.
 
 Viruses: Although we have taken steps to ensure that this e-mail and
 attachments are free from any virus, we advise that in keeping with 
good
 computing practice the recipient should ensure they are actually virus
 free.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



--
There are many ways of going forward, but there is only one way of
standing still.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat monitoring scripts

2005-01-12 Thread Edd Dawson
Hi
Does anyone know of the location of any scripts (for Linux) that will 
monitor tomcat every x minutes and if it finds it not running will 
restart it automatically?

Any suggestions would be appreciated.
thanks
Edd

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat monitoring scripts

2005-01-12 Thread Peter Lin
JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with
tomcat4 or older. in terms of restarting, you're probably going to
have to write a shell script to do that. Typically, on unix a cron job
is used.

peter


On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson
[EMAIL PROTECTED] wrote:
 Hi
 
 Does anyone know of the location of any scripts (for Linux) that will
 monitor tomcat every x minutes and if it finds it not running will
 restart it automatically?
 
 Any suggestions would be appreciated.
 
 thanks
 Edd
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat monitoring scripts

2005-01-12 Thread Edd Dawson
I'm looking more for something that sits on the actual servers and 
probes at set intervals and takes remedial action if necessary.. i just 
wondered if anyone had documented doing such a thing before.

Peter Lin wrote:
JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with
tomcat4 or older. in terms of restarting, you're probably going to
have to write a shell script to do that. Typically, on unix a cron job
is used.
peter
On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson
[EMAIL PROTECTED] wrote:
 

Hi
Does anyone know of the location of any scripts (for Linux) that will
monitor tomcat every x minutes and if it finds it not running will
restart it automatically?
Any suggestions would be appreciated.
thanks
Edd
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 


--
Edd Dawson
Head of Development
MitchellConnerSearson
3-5 High Pavement
The Lace Market
Nottingham  NG1 1HF
Tel +44 (0)115 959 6455
Fax +44 (0)115 959 6456
Direct +44 (0)115 959 6463
www.choosemcs.co.uk http://www.choosemcs.co.uk/
Confidentiality: This e-mail and its attachments are intended for the above 
named only and may be confidential. If they have come to you in error you must 
take no action based on them, nor must you copy or show them to anyone; please 
reply to this e-mail and highlight the error.
Security Warning: Please note that this e-mail has been created in the 
knowledge that Internet e-mail is not a 100% secure communications medium. We 
advise that you understand and observe this lack of security when e-mailing us.
Viruses: Although we have taken steps to ensure that this e-mail and 
attachments are free from any virus, we advise that in keeping with good 
computing practice the recipient should ensure they are actually virus free.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat monitoring scripts

2005-01-12 Thread Peter Lin
most people use Perl or shell scripts to do that. There's plenty of
scripts on the net for doing that by the process id. sorry, I don't
have any links handy. google is your friend.

peter


On Wed, 12 Jan 2005 15:20:53 +, Edd Dawson
[EMAIL PROTECTED] wrote:
 I'm looking more for something that sits on the actual servers and
 probes at set intervals and takes remedial action if necessary.. i just
 wondered if anyone had documented doing such a thing before.
 
 Peter Lin wrote:


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat monitoring scripts

2005-01-12 Thread Peter Crowther
 From: Edd Dawson [mailto:[EMAIL PROTECTED] 
 I'm looking more for something that sits on the actual servers and 
 probes at set intervals and takes remedial action if 
 necessary.

One trick that might work and takes almost no effort is to start Tomcat
from [x]inetd - if it stops, the next request will restart it (albeit
probably slowly).  This fails if you have Tomcat listening on multiple
ports, or if your Tomcat hangs but doesn't stop.

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat monitoring scripts

2005-01-12 Thread Edd Dawson
My googling skills are letting me down today.. i haven't managed to find 
any examples online (and i've been trying most of the day!)

Peter Lin wrote:
most people use Perl or shell scripts to do that. There's plenty of
scripts on the net for doing that by the process id. sorry, I don't
have any links handy. google is your friend.
peter
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat monitoring scripts

2005-01-12 Thread Peter Lin
how about these 

http://www.kernel.org/software/mon/

http://www.eveandersson.com/arsdigita/free-tools/keepalive.html

hope one of them helps.

peter


On Wed, 12 Jan 2005 15:47:37 +, Edd Dawson
[EMAIL PROTECTED] wrote:
 My googling skills are letting me down today.. i haven't managed to find
 any examples online (and i've been trying most of the day!)
 
 Peter Lin wrote:
 
 most people use Perl or shell scripts to do that. There's plenty of
 scripts on the net for doing that by the process id. sorry, I don't
 have any links handy. google is your friend.
 
 peter
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat monitoring scripts

2005-01-12 Thread Didier McGillis
Ch-Check this out.
Shell script
http://www.wespoke.com/archives/000728.php
From: Edd Dawson [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Tomcat monitoring scripts
Date: Wed, 12 Jan 2005 15:20:53 +
I'm looking more for something that sits on the actual servers and probes 
at set intervals and takes remedial action if necessary.. i just wondered 
if anyone had documented doing such a thing before.

Peter Lin wrote:
JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with
tomcat4 or older. in terms of restarting, you're probably going to
have to write a shell script to do that. Typically, on unix a cron job
is used.
peter
On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson
[EMAIL PROTECTED] wrote:

Hi
Does anyone know of the location of any scripts (for Linux) that will
monitor tomcat every x minutes and if it finds it not running will
restart it automatically?
Any suggestions would be appreciated.
thanks
Edd
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Edd Dawson
Head of Development
MitchellConnerSearson
3-5 High Pavement
The Lace Market
Nottingham  NG1 1HF
Tel +44 (0)115 959 6455
Fax +44 (0)115 959 6456
Direct +44 (0)115 959 6463
www.choosemcs.co.uk http://www.choosemcs.co.uk/
Confidentiality: This e-mail and its attachments are intended for the above 
named only and may be confidential. If they have come to you in error you 
must take no action based on them, nor must you copy or show them to 
anyone; please reply to this e-mail and highlight the error.

Security Warning: Please note that this e-mail has been created in the 
knowledge that Internet e-mail is not a 100% secure communications medium. 
We advise that you understand and observe this lack of security when 
e-mailing us.

Viruses: Although we have taken steps to ensure that this e-mail and 
attachments are free from any virus, we advise that in keeping with good 
computing practice the recipient should ensure they are actually virus 
free.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat monitoring scripts

2005-01-12 Thread Didier McGillis
btw the script I would use as a starting point, it doesnt work quite right 
on my system but I was looking for a starting point.

From: Didier McGillis [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: [EMAIL PROTECTED], tomcat-user@jakarta.apache.org
Subject: Re: Tomcat monitoring scripts
Date: Wed, 12 Jan 2005 16:22:52 +
Ch-Check this out.
Shell script
http://www.wespoke.com/archives/000728.php
From: Edd Dawson [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Tomcat monitoring scripts
Date: Wed, 12 Jan 2005 15:20:53 +
I'm looking more for something that sits on the actual servers and probes 
at set intervals and takes remedial action if necessary.. i just wondered 
if anyone had documented doing such a thing before.

Peter Lin wrote:
JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with
tomcat4 or older. in terms of restarting, you're probably going to
have to write a shell script to do that. Typically, on unix a cron job
is used.
peter
On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson
[EMAIL PROTECTED] wrote:

Hi
Does anyone know of the location of any scripts (for Linux) that will
monitor tomcat every x minutes and if it finds it not running will
restart it automatically?
Any suggestions would be appreciated.
thanks
Edd
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Edd Dawson
Head of Development
MitchellConnerSearson
3-5 High Pavement
The Lace Market
Nottingham  NG1 1HF
Tel +44 (0)115 959 6455
Fax +44 (0)115 959 6456
Direct +44 (0)115 959 6463
www.choosemcs.co.uk http://www.choosemcs.co.uk/
Confidentiality: This e-mail and its attachments are intended for the 
above named only and may be confidential. If they have come to you in 
error you must take no action based on them, nor must you copy or show 
them to anyone; please reply to this e-mail and highlight the error.

Security Warning: Please note that this e-mail has been created in the 
knowledge that Internet e-mail is not a 100% secure communications medium. 
We advise that you understand and observe this lack of security when 
e-mailing us.

Viruses: Although we have taken steps to ensure that this e-mail and 
attachments are free from any virus, we advise that in keeping with good 
computing practice the recipient should ensure they are actually virus 
free.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat monitoring scripts

2005-01-12 Thread Faisal Abdullah
On demand restarts with:
http://wrapper.tanukisoftware.org





On Wed, 12 Jan 2005 16:50:54 +, Didier McGillis
[EMAIL PROTECTED] wrote:
 btw the script I would use as a starting point, it doesnt work quite right
 on my system but I was looking for a starting point.
 
 From: Didier McGillis [EMAIL PROTECTED]
 Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
 To: [EMAIL PROTECTED], tomcat-user@jakarta.apache.org
 Subject: Re: Tomcat monitoring scripts
 Date: Wed, 12 Jan 2005 16:22:52 +
 
 Ch-Check this out.
 Shell script
 http://www.wespoke.com/archives/000728.php
 
 From: Edd Dawson [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Tomcat monitoring scripts
 Date: Wed, 12 Jan 2005 15:20:53 +
 
 I'm looking more for something that sits on the actual servers and probes
 at set intervals and takes remedial action if necessary.. i just wondered
 if anyone had documented doing such a thing before.
 
 Peter Lin wrote:
 
 JMeter has a monitor for tomcat 5.0.19 and newer. It doesn't work with
 tomcat4 or older. in terms of restarting, you're probably going to
 have to write a shell script to do that. Typically, on unix a cron job
 is used.
 
 peter
 
 
 On Wed, 12 Jan 2005 15:12:15 +, Edd Dawson
 [EMAIL PROTECTED] wrote:
 
 
 Hi
 
 Does anyone know of the location of any scripts (for Linux) that will
 monitor tomcat every x minutes and if it finds it not running will
 restart it automatically?
 
 Any suggestions would be appreciated.
 
 thanks
 Edd
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
 --
 Edd Dawson
 Head of Development
 
 MitchellConnerSearson
 3-5 High Pavement
 The Lace Market
 Nottingham  NG1 1HF
 Tel +44 (0)115 959 6455
 Fax +44 (0)115 959 6456
 Direct +44 (0)115 959 6463
 www.choosemcs.co.uk http://www.choosemcs.co.uk/
 
 Confidentiality: This e-mail and its attachments are intended for the
 above named only and may be confidential. If they have come to you in
 error you must take no action based on them, nor must you copy or show
 them to anyone; please reply to this e-mail and highlight the error.
 
 Security Warning: Please note that this e-mail has been created in the
 knowledge that Internet e-mail is not a 100% secure communications medium.
 We advise that you understand and observe this lack of security when
 e-mailing us.
 
 Viruses: Although we have taken steps to ensure that this e-mail and
 attachments are free from any virus, we advise that in keeping with good
 computing practice the recipient should ensure they are actually virus
 free.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
There are many ways of going forward, but there is only one way of
standing still.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]