943,712 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Nov 9th, 2005
0

Server checker

Expand Post »
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?
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Slavrix is offline Offline
67 posts
since Oct 2005
Nov 9th, 2005
0

Re: Server checker

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.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Nov 10th, 2005
0

Re: Server checker

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.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Slavrix is offline Offline
67 posts
since Oct 2005
Nov 10th, 2005
0

Re: Server checker

yea this is kinda the first time i have had to do something like this, so im kinda a bit lost.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Slavrix is offline Offline
67 posts
since Oct 2005
Nov 10th, 2005
0

Re: Server checker

Why not just look for a script that does this? Try searching HotScripts.com. There are plenty there that do just that.
Reputation Points: 10
Solved Threads: 1
Light Poster
ayksolutions is offline Offline
43 posts
since Sep 2005
Nov 11th, 2005
0

Re: Server checker

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.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Slavrix is offline Offline
67 posts
since Oct 2005
Nov 11th, 2005
0

Re: Server checker

glad to be of help
Reputation Points: 10
Solved Threads: 1
Light Poster
ayksolutions is offline Offline
43 posts
since Sep 2005
Nov 11th, 2005
0

Re: Server checker

For Additional Fun, Add A Timer Control To Do This Every 10 Seconds
Attached Files
File Type: zip ServerPing.zip (2.8 KB, 49 views)
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Nov 12th, 2005
0

Re: Server checker

tha very much mate
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Slavrix is offline Offline
67 posts
since Oct 2005
Nov 12th, 2005
0

Re: Server checker

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.
Reputation Points: 18
Solved Threads: 2
Posting Whiz in Training
Cain is offline Offline
298 posts
since Aug 2004

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: I need suggestions for creating a Help system for a Visual Basic Program.
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Can anyone help me??





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC