On Mon, 19 Apr 2004, Velagapudi, Niranjan wrote:

> I don't know if there is a way to do it within tomcat.
>
> But you can have a small java program which tries to access your
> application's URL and then returns a status (it will be better if it
> can mail the support team). And this java program can be called
> through a scheduled 'cron' job (assuming you are running your tomcat
> on unix).

We have something like this set up on our production services that use
tomcat (except they're perl scripts :-).  They just run certain checks
periodically and take appropriate action (e.g., try to restart tomcat,
mail support staff) when they find a problem.  The checks are things
like seeing if the tomcat process is running, grepping the logs for
certain failure conditions, and the above-mentioned trying to access
the applications' URLs.  The script can be run via cron as suggested
above; another alternative, which we use, is to have the script
running all the time, sleeping between each iteration of checks.

(In case anyone asks that I post/send them an example script: This
type of thing is really easy to program to anyone with a modicum of
scripting skills; further, most of the "interesting" stuff is in the
particular checks that you run, and that's going to be specific to
your environment/application, so you're going to need to figure those
out yourself anyway.)


> -----Original Message-----
> From: Guy Katz [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 19, 2004 11:06 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Tomcat monitoring
>
> if you can do with an application wide (notifying when your application is
> up) - use a ContextListener.
> personaly i dont know a tomcat wide way of doing this.
> thanks.
>
> -----Original Message-----
> From: Taylor, Kevin [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 19, 2004 3:51 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat monitoring
>
>
> Hi,
>
> Does anyone know of any monitoring software for detecting when a tomcat
> instance becomes unavailable and notifying support persons via email/page?
> Something open source, preferably.
>
> TIA.
>
> > --Kevin Taylor
> >
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to