Yes, that helps.

Has anybody written one of these from scratch?  What approach did you take?  
I am curious what approach folks have taken.

If I write one myself I thought of the following options:
1. Open a system semaphore at the start of Tomcat. Have an email program sit on the 
semaphore.  If Tomcat dies, and it's semaphore dies (which it would/should) then send 
an email.
2. Use a socket.  Open a socket connection between a mail program and Tomcat.  If 
Tomcat breaks the connection, send email.
3. Open an email thread as a hook into Tomcat's runtime via 
Runtime.getRuntime().addShutdownHook(emailThread).  But this will not catch an abend, 
such as a native code failure.
4. Other

>>> [EMAIL PROTECTED] 4/13/2001 11:40:05 PM >>>

Not free but very reasonable priced:  http://www.ipsentry.com/ 

If your server is open to the Intranet, we are using www.netmechanics.com 
for 10$
a month.

Hope this helps.

Tal

> -----Original Message-----
> From: Mark Mynsted [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, April 13, 2001 3:08 PM
> To: [EMAIL PROTECTED] 
> Subject: Tomcat monitor/poller/email
>
>
> Has anybody out there set anything up that will email them in the
> event the Tomcat would crash or not be running?  (Or know of free
> software that can do that.)  I am running Tomcat under Windows NT.
>
> If so please let me know.  (I do not want to re-create the wheel.)
>
> I have NOT had trouble with Tomcat crashing, I simply need to do
> this for my SLA.
>
>



Reply via email to