View Single Post
  #10 (permalink)  
Old 14-03-05
TA Message Board TA Message Board is offline
Registered User
 
Join Date: Jan 2005
Location: Scotland
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
TA Message Board is an unknown quantity at this point
Thanks for all the suggestions. After looking at them all, I wrote a batch file. It doesn't allert me to when there's downtime, but it does let me track it.

Runs as a scheduled task on my PC every 11 mins. Wget is a free utility that grabs a web page and downloads it - I use it for running PHPadsnew maintenance. Once the file is downloaded, I delete it.

Code:
echo %date%,%time%, >> "C:\Program Files\wget\check_Tamb.txt"
c:
cd "\Program Files\wget\download"
"C:\Program Files\wget\wget" http://tamb.ipbhost.com/index.php -Y on -nv -a "C:\Program Files\wget\check_Tamb.txt"
echo ; >> "C:\Program Files\wget\check_Tamb.txt"
del index*.* /q
This produces the following file. A quick search and replace in word to format it correctly. Think the numbers in square brackets is the response time. The downtime shows as blank lines

Code:
06/03/2005,11:53:00.04, 
11:53:00 URL:http://tamb.ipbhost.com/index.php [29508] -> "index.php" [1]
; 
06/03/2005,12:04:00.04, 
; 
06/03/2005,12:15:00.04, 
; 
06/03/2005,12:26:00.04, 
; 
06/03/2005,12:37:00.06, 
12:41:12 URL:http://tamb.ipbhost.com/index.php [1601] -> "index.php" [13]
; 
06/03/2005,12:48:00.04, 
12:48:00 URL:http://tamb.ipbhost.com/index.php [28628] -> "index.php" [1]
__________________
Tartan Army Message Board
Reply With Quote
Sponsored Links