ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Auto-Ping?

(1/2) > >>

CodeTRUCKER:
My search did not yield any useful result, so I apologize if I missed something.  I am not sure if "Auto-Ping" is the right name, but what I am looking for is a way to monitor whether a web site is "up" or "down."

If there is nothing available I will post a request in "Coding Snacks."  Thanks.


rgdot:
May be PingInfoView?
http://www.nirsoft.net/utils/multiple_ping_tool.html

4wd:
Try this, it's just a quick butcher of my iFallover script elsewhere.

OK, I've deleted it because it was a complete screwup, my brain certainly was dormant at the time  :-[

However, I will have another up shortly...just one question:

Do you want to check for the existence of the website or the machine it's hosted on?

A ping will show the latter but won't tell you if the website is actually up.

Also, what do you consider necessary criteria for a website to be 'up', eg. Error 404 means a webserver is up but the page you were looking for isn't on it.

4wd:
OK, as Bullwinkle always said, 'This time for sure!'

The new improved version that seems to work.  Comes with a cast iron executable guarantee*.

It checks for the existence of a website by trying to retrieve the website page at set intervals and changes the SysTray icon accordingly.

If all is well then it will look like this:



If the website is down then, (in theory), you'll get a 5 second popup tooltip:



The icon will change to a red circle with cross and the tooltip will change to:



Explanation of the lines:
1) No connection to the website - this could be because the host machine has died or the webserver program on the host machine is not running.
2) A ping to Google was either OK or not - a failed ping to Google could indicate you have a network problem at your end, (since Google is up most of the time).  If this fails you won't get line 3 - not much point.
3) It passes the website address to http://www.checksite.us and displays the result, this will either be it's down for Everyone or Just You.

Configuration:



It'll open the first time the program is run or if you select it from the tray icon menu.

The first connection is attempted at the end of the first elapsed interval after program execution, so until then the SysTray icon will look like the executable icon.

You can put the executable anywhere you like, you can name it anything you like - the config file will be located in the same directory and have the same name, (except extension), as the executable.

Have one for each site and name them accordingly, eg. google.exe, donationcoder.exe, etc.exe

Source, executable, icons, etc in the archive.

* It'll work until the moment you execute it.

Updated: 20120312 - Fixed some typos and added an option for the popup to the config.

Deozaan:
Assuming you have internet access and just want to verify that a certain website is working, you can use other websites such as:

http://isitup.org/
http://isup.me/

Navigation

[0] Message Index

[#] Next page

Go to full version