Author |
Topic |
|
redbrad0
Advanced Member
USA
3725 Posts |
Posted - 24 December 2004 : 18:30:59
|
I was curious if there is a way thru ASP to monitor your domain name servers, FTP servers, SMTP email servers, POP3 servers, IMAP servers, NNTP news servers, Telnet servers, Web servers? I know there are services for this but was wondering if it would be possible thru ASP. |
Brad Oklahoma City Online Entertainment Guide Oklahoma Event Tickets |
|
DarkDrift
Junior Member
USA
126 Posts |
|
redbrad0
Advanced Member
USA
3725 Posts |
|
DarkDrift
Junior Member
USA
126 Posts |
|
DarkDrift
Junior Member
USA
126 Posts |
Posted - 24 December 2004 : 19:10:04
|
Alright download this www.jottswebhosting.com/check.zip NOTE: I got lazy and didn't zip it so it is just a file with a different extension when you get it just chang ethe .zip to .asp
now create a batch file to do this goto Start>Run and type either command for win 98 or cmd for winNT based platforms
Then type edit and press enter now you can create batch files and user your mouse in msdos..YAY!..
Type
@echo off
echo.
echo "Testing DOMAIN.com port:PORT"
echo.
ping www.DOMAIN.com or you can do ping www.DOMAIN.com:PORT
exit
Then you simple save it somewhere in the C drive as whatever.bat and then in the asp file change my file and path to yours and try that... I got lazy and didn't test it so let me know your outcome... There may be some way to get input from the user to plug into the prompt but i am scared...
NOTE you may have to refine my bat with examples on the internet i am very rusty |
http://www.xcalliber.com - The Future of Boards |
Edited by - DarkDrift on 24 December 2004 19:11:12 |
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 25 December 2004 : 11:50:39
|
you might want to zip that up, downloading an ASCII file type through BINARY mode might disrupt the file (zip extension is binary, asp is ASCII) |
-Stim |
|
|
DarkDrift
Junior Member
USA
126 Posts |
Posted - 25 December 2004 : 12:04:21
|
i just changed it like i would change it to a .txt it's fine :) |
http://www.xcalliber.com - The Future of Boards |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 25 December 2004 : 23:06:55
|
Link doesn't seem to work for me
Redbrad0 did ask for something in "ASP" rather than a dos batch script. Ping isn't really very useful for testing a server for anything other than knowing that the network stack is still operating, you can't "ping" a specific port either, perhaps you were thinking of telnet ?
To correctly test a server you'd need to connect to the relevant services and check that you get a response etc. ASP could be used for this with a few COM objects but you'd need to schedule the script so that it checks the server often.
If you want a fairly good monitoring solution you'd be best to look into something like ServersCheck, Hybodus or some of the other readily available |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
redbrad0
Advanced Member
USA
3725 Posts |
Posted - 26 December 2004 : 00:02:45
|
Thanks for your reply Gremlin. Basically I was creating a small script that will be calling a web page to execute sending out the newsletters. While I was thinking about it I thought it would helpful if I tested different ports to see if SQL is running or the mail is still running. |
Brad Oklahoma City Online Entertainment Guide Oklahoma Event Tickets |
|
|
redbrad0
Advanced Member
USA
3725 Posts |
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
|
|
Topic |
|