Re: Tomcat monitoring

APL <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <000001c4264a$99b492c0$90e49951@quantex>
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" [email protected] << EOF
        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:[email protected]] On Behalf Of
Taylor, Kevin
Sent: 19 April 2004 14:51
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.