1834231 Members
2304 Online
110066 Solutions
New Discussion

CGI script needed

 
Allanm
Super Advisor

CGI script needed


I need a CGI script in which I can monitor some URLs in different environments / servers.

Does anybody already have this which I can use and modify the URLs to have a nice display to monitor those URLs through a single browser page.

Thanks,
Allan
11 REPLIES 11
Torsten.
Acclaimed Contributor

Re: CGI script needed

What is the meaning of "monitor some URLs"?

This is not clear (at least to me).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
OFC_EDM
Respected Contributor

Re: CGI script needed

I used wget to do this years ago.

You'll have to download and install.

I'll see if i can locate the url to download the file for you.

And also get an examplet of how to use it.

In the meantime do a search in the forums for wget and you'll probably beat me to the full answer.

Regards
The Devil is in the detail.
OFC_EDM
Respected Contributor

Re: CGI script needed

http://hpux.connect.org.uk/

That's the UK link where you can get teh wget software.

You can select a different country such as Canada etc. if you're elsewhere.

Don't forget to look at the software dependencies and ensure they're on your system before you install wget.

If you don't have the dependencies they should all be available on the same website.
The Devil is in the detail.
OFC_EDM
Respected Contributor

Re: CGI script needed

http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1073618&admit=109447627+1203429452882+28353475

Link to an ITRC thread with your answers. Near the end of the thread they give a sample script.

Hope this is what you need!
The Devil is in the detail.
Steven Schweda
Honored Contributor

Re: CGI script needed

> What is the meaning of "monitor some URLs"?
> This is not clear (at least to me).

I'm with you. (Also, "nice" is not a
well-defined attribute.)

> I need a CGI script [...]

Any language preference?
Torsten.
Acclaimed Contributor

Re: CGI script needed

Thanks Steven.

wget is a downloader. Downloading something is not what I would call monitor an URL.

But several "URLs through a single browser page" ... ?

How about a html page with a frame definition (+ a "refresh" META tag)?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Allanm
Super Advisor

Re: CGI script needed

Ok here is an explanation :

I want to monitor few URLs through a single web page. ( can be a cgi script so that I can open it through a browser page )

Since I want to monitor multiple URLs within a single browser page I want to have a nice layout to it.( categorised based on different environments - like prod , qa , integration ) since each environment it pointing different URL.

I hope it explains my problem a little better.
Torsten.
Acclaimed Contributor

Re: CGI script needed

Still not sure ...

How about this.

Copy to a file, add the *.html extension and open in a browser.

=== cut here ===




MyFrames
<meta http-equiv="refresh" content="10;" />
















Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Patrick Wallek
Honored Contributor

Re: CGI script needed

Your question is still not entirely clear. What exactly do you mean by "want to monitor few URLs through a single web page"?

How do you want to monitor the URLs? Are you wanting to see if they work? Are you wanting to display multiple web pages in a single browser window? You must be more clear about exactly what you are trying to accomplish.
Allanm
Super Advisor

Re: CGI script needed

Are you wanting to see if they work?
YES

and if I do a refresh ( of the browser )it should fetch me the current status.
Steven Schweda
Honored Contributor

Re: CGI script needed

> Are you wanting to see if they work?
> YES

In that case, I'd probably use wget to
attempt to fetch an URL, redirecting its
normal output to a file, then scan that file
for a success status ("200 OK", or whatever),
and put out whatever HTML would look "nice"
to show that result.

No, I don't already have a script to do this.