Thanks a lot Darryl.
Jorge.
De: Darryl Lewis [mailto:darryl.le...@unsw.edu.au]
Enviado el: martes, 22 de marzo de 2011 4:05
Para: Jorge Infante Osorio; Tomcat Users List
Asunto: Re: How to detect down of tomcat.
This needs to be run as root
Put it in a cron job to fire every minute
#!/bin/sh
it?
Thanks,
Jorge.
-Mensaje original-
De: Darryl Lewis [mailto:darryl.le...@unsw.edu.au]
Enviado el: sábado, 19 de marzo de 2011 23:17
Para: Tomcat Users List
Asunto: Re: How to detect down of tomcat.
Opps...typo
#!/bin/sh
if [ `ps -ef|grep tomcat|grep -v grep|wc -l` -lt 1
This needs to be run as root
Put it in a cron job to fire every minute
#!/bin/sh
DOWN=0
read DOWN status.txt
if [ $DOWN -eq 1 ]
then
if [ `ps -ef|grep tomcat|grep -v grep|wc -l` -gt 0 ]
then
NOW=`date`
subject=tomcat recovered $NOW
address=m...@domain.com
ps -ef|grep
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hide,
On 3/19/2011 10:38 PM, Hide wrote:
How to detect down of tomcat.
Note that the responses you've been getting are only testing for the
Tomcat process still running in some way. There are probably a lot of
scenarios where you consider Tomcat
On Sun, Mar 20, 2011 at 05:05, Hide hide3...@ob4.aitai.ne.jp wrote:
[...]
My explanation seems to have been bad.
I explain it a little more.
It is a method to output the information of the abnormal termination in
catalina.log that I want to know.
Would you teach it if you know some method?
users@tomcat.apache.org
Sent: Sunday, March 20, 2011 12:00 PM
Subject: Re: How to detect down of tomcat.
Put this in a cronjob to fire every minute
#!/bin/sh
if [ `ps -ef|grep tomcat|grep -v grep|wc -l` -lt 1 ]
then
subject=`tomcat down; date`
address=m...@domain.com
ps -efatt.txt
mail -s
, 2011 12:17 PM
Subject: Re: How to detect down of tomcat.
You could write something similar using windows powershell. Do you have
that installed on your server?
On 20/03/11 2:14 PM, Hide hide3...@ob4.aitai.ne.jp wrote:
Hi, Darryl.
Thanks for your advice.
Your script looks like very useful
List users@tomcat.apache.org
Sent: Sunday, March 20, 2011 12:17 PM
Subject: Re: How to detect down of tomcat.
You could write something similar using windows powershell. Do you have
that installed on your server?
On 20/03/11 2:14 PM, Hide hide3...@ob4.aitai.ne.jp wrote:
Hi, Darryl
...@unsw.edu.au
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, March 20, 2011 12:17 PM
Subject: Re: How to detect down of tomcat.
You could write something similar using windows powershell. Do you have
that installed on your server?
On 20/03/11 2:14 PM, Hide hide3...@ob4.aitai.ne.jp wrote
: How to detect down of tomcat.
Put this in a cronjob to fire every minute
#!/bin/sh
if [ `ps -ef|grep tomcat|grep -v grep|wc -l` -lt 1 ]
then
subject=`tomcat down; date`
address=m...@domain.com
ps -efatt.txt
mail -s $subject $addr -- -fno-reply@yourdomain att.txt
fi
Fill in the address
.
- Original Message -
From: Darryl Lewis darryl.le...@unsw.edu.au
To: Tomcat Users List users@tomcat.apache.org; Tomcat Users List
users@tomcat.apache.org
Sent: Sunday, March 20, 2011 8:20 PM
Subject: Re: How to detect down of tomcat.
The other problem will be that tomcat is running
users@tomcat.apache.org
Sent: Sunday, March 20, 2011 8:20 PM
Subject: Re: How to detect down of tomcat.
The other problem will be that tomcat is running, but the application is
not responding. There may be nothing in the logs for this, and this is
one of my most common issues.
In this case, I use
On 20/03/2011 10:22, Francis GALIEGUE wrote:
Not really, no. If, for instance, you don't have a minimal security
configuration, you can put in your code, say, System.exit(0), and
Tomcat will die without notice.
Wrong. If you do that you will see a normal shut-down sequence.
Mark
How to detect down of tomcat.
Helo.
My environment is tomcat7, java1.6, windows.
When process of tomcat terminated abnormally,
is there any method or setting that output the abnormal termination to a log
file?
If there is it, please let me know.
tomcat is the premise that is not service
overnight, and my beauty rest
only gets disturbed in the really bad cases.
On 20/03/11 1:38 PM, Hide hide3...@ob4.aitai.ne.jp wrote:
How to detect down of tomcat.
Helo.
My environment is tomcat7, java1.6, windows.
When process of tomcat terminated abnormally,
is there any method or setting
users@tomcat.apache.org
Sent: Sunday, March 20, 2011 12:00 PM
Subject: Re: How to detect down of tomcat.
Put this in a cronjob to fire every minute
#!/bin/sh
if [ `ps -ef|grep tomcat|grep -v grep|wc -l` -lt 1 ]
then
subject=`tomcat down; date`
address=m...@domain.com
ps -efatt.txt
mail -s
, and my beauty rest
only gets disturbed in the really bad cases.
On 20/03/11 1:38 PM, Hide hide3...@ob4.aitai.ne.jp wrote:
How to detect down of tomcat.
Helo.
My environment is tomcat7, java1.6, windows.
When process of tomcat terminated abnormally,
is there any method or setting that output
am looking for a method to detect the down of tomcat by log file.
- Original Message -
From: Darryl Lewis darryl.le...@unsw.edu.au
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, March 20, 2011 12:00 PM
Subject: Re: How to detect down of tomcat.
Put this in a cronjob to fire
fourni.
From: darryl.le...@unsw.edu.au
To: users@tomcat.apache.org
Date: Sun, 20 Mar 2011 14:00:49 +1100
Subject: Re: How to detect down of tomcat.
Put this in a cronjob to fire every minute
#!/bin/sh
if [ `ps -ef|grep tomcat|grep -v grep|wc -l` -lt 1 ]
then
subject=`tomcat down
-
From: Darryl Lewis darryl.le...@unsw.edu.au
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, March 20, 2011 12:17 PM
Subject: Re: How to detect down of tomcat.
You could write something similar using windows powershell. Do you have that
installed on your server?
On 20/03/11 2:14
20 matches
Mail list logo