× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Short answer, yes.

Couple different ways to do it, depending on why it is becoming unavailable.

If it's becoming unavailable because your machine can't reach the internet
anymore, then you would want some job running on your web server pinging
some known internet address periodically.  If the ping starts timing out
then have the program send a message.  Of course, if your machine can't
reach the internet, it's going to be fairly hard to get an e-mail out <g>

If it's becoming unavailable because the web server needs restarting for
some reason, then I would write a program in your language of choice (RPG
comes to mind) that simply attempts to open a connection on the web server
on port 80.  Port 80 being the HTTP port, of course.  If your program can't
connect to port 80, then send the message, should be easier to send an
e-mail message this way, of course.

If it's becoming unavailable because of a 404 error or something, do the
same as above, connect to port 80, then send a GET request.  I don't
remember the exact syntax off the top of my head, but I had cheated to get
the syntax in the first place by writing a http proxy on my PC.  You could
find the RFC for it, or maybe someone on this list knows.  Then you can see
if you get a 404.

HTH

Regards,

Jim Langston
Programmer/Analyst
Cels Enterprises, Inc.

-----Original Message-----
From: web400-admin@midrange.com [mailto:web400-admin@midrange.com]On
Behalf Of Dave Willenborg
Sent: Monday, August 20, 2001 2:53 PM
To: web400@midrange.com
Subject: [WEB400] Test on the web site


Lately we have been having problems with our web site not being available
to our users.

Is the a way that I can test the web site to see if it is available on the
net other than doing it manually.

What I would like to do is have a program run to make sure the web site is
functional. If it is not, send an e-mail or a page to a cell phone so that
the person on call can fix the problem.

TIA
Dave Willenborg
MIS Manager
J C Robinson Seed Co.
dwillenborg@jcrob.com

_______________________________________________
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/web400
or email: WEB400-request@midrange.com




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.