Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > [OT] Any way to see if a website is up in an automated way?

Reply
Thread Tools

[OT] Any way to see if a website is up in an automated way?

 
 
Rhino
Guest
Posts: n/a
 
      09-03-2006
I am looking for a tool or technique that can automatically check to see if
a specific website is up - say twice a day - and then send me an email if it
isn't. I do not want to have to manually check myself.

Does anyone know of a way to do this?

I have no money to spend on this so if there is no free service that does
it, I'd be interested in how I can program this, preferably in Java. I
assume that my best bet would be Java application that I could schedule via
Windows XP scheduler but I can code applets and servlets too if that makes
more sense.

--
Rhino


 
Reply With Quote
 
 
 
 
Richard Wheeldon
Guest
Posts: n/a
 
      09-03-2006
Rhino wrote:
> I am looking for a tool or technique that can automatically check to see if
> a specific website is up - say twice a day - and then send me an email if it
> isn't. I do not want to have to manually check myself.
>
> Does anyone know of a way to do this?


If you're running on Unix, this kind of thing is probably best done in a
cron job with a shell script:

#!/bin/sh
wget -O - http://www.google.com/ > /dev/null 2>&1 ||
mail -s "Wot no website" http://www.velocityreviews.com/forums/(E-Mail Removed) << EOF
Where's my website gone?
EOF

If you really want to do it in Java, simply create an HTTP connection to
port 80, check the return codes and read in the data for comparison to a
known good page,

Regards,

Richard
 
Reply With Quote
 
 
 
 
Zaph0d
Guest
Posts: n/a
 
      09-03-2006
If you're not using unix based OS, just create an HTTPClient (
http://jakarta.apache.org/commons/httpclient/ ) and check the error
codes. You can either leave the program running and use a timer, or use
your OS schedular to fire the the program at regular intervals.

 
Reply With Quote
 
David Segall
Guest
Posts: n/a
 
      09-03-2006
"Rhino" <(E-Mail Removed)> wrote:

>I am looking for a tool or technique that can automatically check to see if
>a specific website is up - say twice a day - and then send me an email if it
>isn't. I do not want to have to manually check myself.

Montastic <http://www.montastic.com/> is free and checks about every
ten minutes.

I use ZoneEdit <http://www.zoneedit.com/> because it not only checks
every ten minutes it switches my domain to a backup server if the
prime server is down. It costs ten dollars per year.
 
Reply With Quote
 
Rhino
Guest
Posts: n/a
 
      09-03-2006

"David Segall" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Rhino" <(E-Mail Removed)> wrote:
>
>>I am looking for a tool or technique that can automatically check to see
>>if
>>a specific website is up - say twice a day - and then send me an email if
>>it
>>isn't. I do not want to have to manually check myself.

> Montastic <http://www.montastic.com/> is free and checks about every
> ten minutes.
>

Thanks for that suggestion! I knew ethere be'd something that would do this
and this looks fine! I'm giving it a test as I type this.

There is no way to change the frequency of the tests or control the text of
the email or send copies of the email to someone else, right? I can't see
any controls at all at the Montastic site aside from selecting the URL that
is being monitored....

> I use ZoneEdit <http://www.zoneedit.com/> because it not only checks
> every ten minutes it switches my domain to a backup server if the
> prime server is down. It costs ten dollars per year.


I'm already using ZoneEdit. But for some reason, even though my IP address
is correct, my site is going down occasionally. It is sometimes days later
before someone points it out to me. (It's just a club website, not a
business, so traffic is pretty low.) To fix the problem, I need to go into
ZoneEdit and set the IP to an INCORRECT value, wait ten minutes, then set it
back to the correct value; then my site works again. I'm really not sure why
this is happening or what to do about it but being notified that this site
is down is a way that I can at least get the site back up again quickly.

--
Rhino


 
Reply With Quote
 
Alex Hunsley
Guest
Posts: n/a
 
      09-05-2006
Zaph0d wrote:
> If you're not using unix based OS, just create an HTTPClient (
> http://jakarta.apache.org/commons/httpclient/ ) and check the error
> codes. You can either leave the program running and use a timer, or use
> your OS schedular to fire the the program at regular intervals.


Or consider HTTPUnit:
http://httpunit.sourceforge.net/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
501 PIX "deny any any" "allow any any" Any Anybody? Networking Student Cisco 4 11-16-2006 10:40 PM
Is there any way to make destination URL see a different referer? Chris Ianson HTML 1 04-01-2006 08:04 AM
any open source Java products that handle automated telecom calling?!? davout Java 3 11-23-2005 05:41 PM
Any way to see bandwith usage on 1721 and 800 ? Himselff Cisco 0 06-28-2005 07:27 PM
Is there any way/where to subscribe for automated PEP status emails? Bengt Richter Python 3 01-06-2005 12:39 PM



Advertisments