Re: server not reachable in regular period of time

2006-11-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Just a note about checking the "up-ness" of a web server... I use httping, which is just about the same as using wget, except that you don't have to use grep to check the status code... httping allows you to define which status codes are conside

Re: server not reachable in regular period of time

2006-11-28 Thread Martin Gainty
"David Smith" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, November 28, 2006 10:45 AM Subject: Re: server not reachable in regular period of time > Looks to me suspiciously like an issue with wget instead of tomcat. > Wget is making an attempt usin

Re: server not reachable in regular period of time

2006-11-28 Thread David Smith
y|:8080... failed: the idle time for the connection is expred. >new attemtpt. > > > >- Originalnachricht - >Von: David Smith <[EMAIL PROTECTED]> >Datum: Dienstag, 28. November 2006 1:31 pm >Betreff: Re: server not reachable in regular period of time > >

Re: server not reachable in regular period of time

2006-11-28 Thread compuin5y313
06 1:31 pm Betreff: Re: server not reachable in regular period of time > What does stdout have in it when your script registers a server down > condition? > > --David > > [EMAIL PROTECTED] wrote: > > >Hi all, > > > >I run a Linux script to check every 5

Re: server not reachable in regular period of time

2006-11-28 Thread David Smith
What does stdout have in it when your script registers a server down condition? --David [EMAIL PROTECTED] wrote: >Hi all, > >I run a Linux script to check every 5 minutes whether my server is still on: > >#! /bin/bash >while true; do > sleep 300 > `wget http://localhost:8080/myapp/index.jsp -o

server not reachable in regular period of time

2006-11-28 Thread compuin5y313
Hi all, I run a Linux script to check every 5 minutes whether my server is still on: #! /bin/bash while true; do sleep 300 `wget http://localhost:8080/myapp/index.jsp -o stdout` result=`grep -c 'OK' stdout` if [ $result -eq 0 ]; then echo "server down" | mail -s "warning:se