Thread Solved

Join Date: Oct 2005
Posts: 62
Reputation: Slavrix is an unknown quantity at this point 
Solved Threads: 0
Slavrix Slavrix is offline Offline
Junior Poster in Training

Server checker

 
0
  #1
Nov 9th, 2005
hey boyz/girlz

i need to make a code for a server status checker, how would i do it?

at the moment the server is checked by using this

http://deep.phpwebhosting.com/~parad...erverCheck.php

how can i convert that into a simple program that can run on the desktop?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Server checker

 
0
  #2
Nov 9th, 2005
The easiest solution is to shell a ping command, and redirect the output to a temporary file. Open the Temporary file, and have your VB Program read in the lines (compare using instr) and check if there is a timeout, or if there is a response from the server. If there is a response from the server, naturally, the server is up. If you get, instead, a ping timout, then the server is down. If you really want to get fancy about it, you could try to connect the server on port 80 (the web page port), rip apart the HTML, and have it figure if the image is Red or Green. The first option is clearly easier, and is just as effective. Let me know if you need any further assistance in this.
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 62
Reputation: Slavrix is an unknown quantity at this point 
Solved Threads: 0
Slavrix Slavrix is offline Offline
Junior Poster in Training

Re: Server checker

 
0
  #3
Nov 10th, 2005
yea, thx, couyld you pls show me how to do this, i couldnt get it to work myself.

also ineed it to run in the system tray, but only if it is easy.
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 62
Reputation: Slavrix is an unknown quantity at this point 
Solved Threads: 0
Slavrix Slavrix is offline Offline
Junior Poster in Training

Re: Server checker

 
0
  #4
Nov 10th, 2005
yea this is kinda the first time i have had to do something like this, so im kinda a bit lost.
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 43
Reputation: ayksolutions is an unknown quantity at this point 
Solved Threads: 1
ayksolutions's Avatar
ayksolutions ayksolutions is offline Offline
Light Poster

Re: Server checker

 
0
  #5
Nov 10th, 2005
Why not just look for a script that does this? Try searching HotScripts.com. There are plenty there that do just that.
AYKsolutions.com
Hosting & Web Design
Professional. Painless. Polite.
Visit our FAQ.
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 62
Reputation: Slavrix is an unknown quantity at this point 
Solved Threads: 0
Slavrix Slavrix is offline Offline
Junior Poster in Training

Re: Server checker

 
0
  #6
Nov 11th, 2005
thx ill chk that,

yea ill just put a better description of what i am trying to do.

this server is used to host the game World of Warcraft, and im trying to get a small program to run that will connect to the server, telling me if the server is up or down. but i dont know how to get it to connect to the server properly.

becasue i have never done anything like this before, i would like sum help doing it.


i can make the UI for it, or even better could someone tell me how to get it to run in the system try so that i can keep it running whilst doing other things.

or if anyone knows of somewhere that i can download a program that already does this simply.
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 43
Reputation: ayksolutions is an unknown quantity at this point 
Solved Threads: 1
ayksolutions's Avatar
ayksolutions ayksolutions is offline Offline
Light Poster

Re: Server checker

 
0
  #7
Nov 11th, 2005
glad to be of help
AYKsolutions.com
Hosting & Web Design
Professional. Painless. Polite.
Visit our FAQ.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Server checker

 
0
  #8
Nov 11th, 2005
For Additional Fun, Add A Timer Control To Do This Every 10 Seconds
Attached Files
File Type: zip ServerPing.zip (2.8 KB, 24 views)
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 62
Reputation: Slavrix is an unknown quantity at this point 
Solved Threads: 0
Slavrix Slavrix is offline Offline
Junior Poster in Training

Re: Server checker

 
0
  #9
Nov 12th, 2005
tha very much mate
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 298
Reputation: Cain is an unknown quantity at this point 
Solved Threads: 2
Cain's Avatar
Cain Cain is offline Offline
Posting Whiz in Training

Re: Server checker

 
0
  #10
Nov 12th, 2005
you can use cron or the at command on IX flavored systems for "timing"
SNMPD is designed for monitoring systems. Is also installed on IXs by default and sometimes fault on Windows. Loads of good suggestions on this thread guys.
I used up all my money on you baby...
... and I want it BACK.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC