RE: Script for checking remote server

2003-02-25 Thread Mike Jackson
ilto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 1:40 AM > To: Tomcat Users List > Subject: RE: Script for checking remote server > > > > Oh yeah that's right. If it's not in the process table it won't show up > with this script. I don't know if L

RE: Script for checking remote server

2003-02-25 Thread Oscar Carrillo
ej > > -=- > > mike jackson > > [EMAIL PROTECTED] > > > > > -Original Message- > > > From: Oscar Carrillo [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, February 25, 2003 1:29 AM > > > To: Tomcat Users List > > > Subjec

RE: Script for checking remote server

2003-02-25 Thread Oscar Carrillo
en again Unixware does threads as LWPs rather > than processes. > > --mikej > -=- > mike jackson > [EMAIL PROTECTED] > > > -Original Message- > > From: Oscar Carrillo [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, February 25, 2003 1:29 AM > > To: T

RE: Script for checking remote server

2003-02-25 Thread Mike Jackson
like a standard init.d startup script. > > > > --mikej > > -=- > > mike jackson > > [EMAIL PROTECTED] > > > > > -Original Message- > > > From: Oscar Carrillo [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, February 25, 200

RE: Script for checking remote server

2003-02-25 Thread Mike Jackson
Message- > From: Turner, John [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 12:46 PM > To: 'Tomcat Users List' > Subject: RE: Script for checking remote server > > > > I don't think so...the last example I saw was making system calls > to

RE: Script for checking remote server

2003-02-25 Thread Oscar Carrillo
> > -Original Message- > > From: Oscar Carrillo [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, February 25, 2003 12:38 AM > > To: Tomcat Users List > > Subject: Re: Script for checking remote server > > > > > > I have a status function that tells

RE: Script for checking remote server

2003-02-25 Thread Turner, John
Cool. Thanks. John > -Original Message- > From: Oscar Carrillo [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 4:27 AM > To: Tomcat Users List > Subject: RE: Script for checking remote server > > > I believe so. Found this example below of laun

RE: Script for checking remote server

2003-02-25 Thread Ron Day
PROTECTED] Sent: Tuesday, February 25, 2003 2:46 PM To: 'Tomcat Users List' Subject: RE: Script for checking remote server I don't think so...the last example I saw was making system calls to ps and looking for a particular entry in the process table, and the other one I saw was

RE: Script for checking remote server

2003-02-25 Thread Oscar Carrillo
t to run "XWin -query > hostname". ;) > > John > > > > -Original Message- > > From: Oscar Carrillo [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, February 25, 2003 4:11 AM > > To: Tomcat Users List > > Subject: Re: Script for checking remote

RE: Script for checking remote server

2003-02-25 Thread Mike Jackson
That just looks like a standard init.d startup script. --mikej -=- mike jackson [EMAIL PROTECTED] > -Original Message- > From: Oscar Carrillo [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 12:38 AM > To: Tomcat Users List > Subject: Re: Script for

RE: Script for checking remote server

2003-02-25 Thread Mike Jackson
Get the unix for windows stuff from MS, or get cywin... --mikej -=- mike jackson [EMAIL PROTECTED] > -Original Message- > From: tomcat guy [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 12:45 PM > To: Tomcat Users List > Subject: Re: Script for checkin

RE: Script for checking remote server

2003-02-25 Thread Turner, John
ry 25, 2003 4:11 AM > To: Tomcat Users List > Subject: Re: Script for checking remote server > > > You could install cygwin. Then you can run this script, > and get to learn a few common Linux tools too :-) > > Oscar > > On Tue, 25 Feb 2003, tomcat guy wrote: > &

RE: Script for checking remote server

2003-02-25 Thread Turner, John
't do anything. Perhaps I missed another example that was posted. John > -Original Message- > From: Ron Day [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 3:37 PM > To: Tomcat Users List > Subject: RE: Script for checking remote server > > > I as

RE: Script for checking remote server

2003-02-25 Thread Turner, John
> -Original Message- > From: tomcat guy [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 3:45 PM > To: Tomcat Users List > Subject: Re: Script for checking remote server > > > Whoops... I forgot to mention the machine checking the remote > server

Re: Script for checking remote server

2003-02-25 Thread Oscar Carrillo
D]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, February 25, 2003 1:12 PM > Subject: RE: Script for checking remote server > > > > Ok, I've got an example, I cut out ip's and the "SendMsg" function, but > you > &g

Re: Script for checking remote server

2003-02-25 Thread Tim Funk
day, February 25, 2003 1:12 PM Subject: RE: Script for checking remote server Ok, I've got an example, I cut out ip's and the "SendMsg" function, but you ought to be able to figure out where to go from here. Also it doesn't check tomcat via wget of a jsp, it does a rsh and c

RE: Script for checking remote server

2003-02-25 Thread Ron Day
I assume you are agreeing with me, and Hannes ? -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 1:59 PM To: 'Tomcat Users List' Subject: RE: Script for checking remote server Monitoring the process table with ps doesn't t

Re: Script for checking remote server

2003-02-25 Thread tomcat guy
killin me! - Original Message - From: "Mike Jackson" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 1:12 PM Subject: RE: Script for checking remote server > Ok, I've got an example, I cut out ip&#

RE: Script for checking remote server

2003-02-25 Thread Ron Day
that was my point -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 1:50 PM To: 'Tomcat Users List' Subject: RE: Script for checking remote server It wouldn't matter...if Apache is down, the entire application

Re: Script for checking remote server

2003-02-25 Thread Oscar Carrillo
I have a status function that tells you which threads are running for tomcat for linux/unix. Of course it doesn't give you definitive proof that the app is up, but it is useful info. Go here to get script: http://daydream.stanford.edu/tomcat/tomcatd Oscar On Tue, 25 Feb 2003, tomcat guy wrote:

RE: Script for checking remote server

2003-02-25 Thread Turner, John
ntent returned as the response for an indicator that all is well. Anything else is false security. John > -Original Message- > From: Ron Day [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 2:07 PM > To: Tomcat Users List > Subject: RE: Script for checking remote ser

RE: Script for checking remote server

2003-02-25 Thread Turner, John
It wouldn't matter...if Apache is down, the entire application is down. John > -Original Message- > From: Ron Day [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 2:09 PM > To: Tomcat Users List > Subject: RE: Script for checking remote server > >

Re: Script for checking remote server

2003-02-25 Thread tomcat guy
Thanks Mike I'll take ALL the coding examples I can get! - Original Message - From: "Mike Jackson" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 1:07 PM Subject: RE: Script for checking remote server

RE: Script for checking remote server

2003-02-25 Thread Mike Jackson
[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 11:09 AM > To: Tomcat Users List > Subject: RE: Script for checking remote server > > > Will you get a jsp if Apache is down ?? > > -Original Message- > From: Mike Jackson [mailto:[EMAIL PROTECTED] > Sent: T

RE: Script for checking remote server

2003-02-25 Thread Mike Jackson
Ok, I've got an example, I cut out ip's and the "SendMsg" function, but you ought to be able to figure out where to go from here. Also it doesn't check tomcat via wget of a jsp, it does a rsh and checks for the process. This doesn't help if tomcat is hung up, but that hasn't been much of a proble

RE: Script for checking remote server

2003-02-25 Thread Ron Day
Will you get a jsp if Apache is down ?? -Original Message- From: Mike Jackson [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 1:07 PM To: Tomcat Users List Subject: RE: Script for checking remote server I use a script that uses wget to retrieve pages from the server. If I

RE: Script for checking remote server

2003-02-25 Thread Ron Day
Use java code very similar to that in the recent post by Hannes Schmidt (see Tues 02/25/2003:5.29AM) I run something like this out of a thread that I initiate in the init method of my main servlet. It can call a java class to send email or whatever. ron -Original Message- From: tomcat gu

RE: Script for checking remote server

2003-02-25 Thread Mike Jackson
I use a script that uses wget to retrieve pages from the server. If I can't get a jsp I know that tomcat is down, if I can't get an html I know apache is down. I'll post something in a bit. --mikej -=- mike jackson [EMAIL PROTECTED] > -Original Message- > From: tomcat guy [mailto:[E