Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Servlet Interest »

Re: Tomcat monitoring

APL

2004-04-19

Replies:

Hi Kevin

Can I suggest 2 options:

1) Write your own monitor (Korn shell script or Perl script) to monitor
the existence of your Tomcat instance: something like

#!/bin/ksh
... insert commands to start Tomcat ...
# poll Tomcat instance, and sleep if its alive
while [`ps -ef | grep $TOMCAT | wc -l` -gt 0 ]
do
    sleep 30 # set wait period in seconds to your taste
done
# otherwise, send an email
mailx -s "Tomcat has died" youremail@(protected)
    Tomcat just died at `date`
    `tail -100 $TOMCATLOG`
EOF

Where $TOMCAT represents something unique about your Tomcat instance
{command line etc), and $TOMCATLOG is the name of its log file, so the
email can tell you what/why it went belly up.

2) Download a freeware product from Quest called Big Brother, which can
monitor log files for keywords, and/or process instance existence, with
alerts being sent to email, cell phones, SMS etc as required.

HTH
Austin

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:SERVLET-INTEREST@(protected)
Taylor, Kevin
Sent: 19 April 2004 14:51
To: SERVLET-INTEREST@(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 listserv@(protected)
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 listserv@(protected)
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
©2008 junlu.com - Jax Systems, LLC, U.S.A.