hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Programming Tutorials : server check
Reply

Programming Tutorials How-Tos related to programming, databases, and the like.
Forum Jump

server check

Reply Post New Thread In Programming Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-26-2004, 10:50 AM
serverunion serverunion is offline
Web Hosting Master
 
Join Date: May 2004
Location: madison, wi
Posts: 839

server check


Need a script to check to see if sites are up and txt msg my phone if they aren't.

Will need to run on ASP/windows. Need some idea abou the script and how to autorun it on windows.

Thanks in advance...
Natron

Reply With Quote


Sponsored Links
  #2  
Old 08-01-2004, 12:42 PM
athomas athomas is offline
Temporarily Suspended
 
Join Date: Jul 2004
Posts: 11
try looking for something on hotscripts.com, they have a bunch of server scripts there. I use them for mine.

Reply With Quote
  #3  
Old 08-28-2004, 05:31 PM
Carp Carp is offline
What should I put here?
 
Join Date: Feb 2003
Location: Albany, New York
Posts: 2,914
I know you said ASP, But if there is anyway you can do it in PHP.....It's quite easy.. I don't know ASP so I cant help you.

Reply With Quote
Sponsored Links
  #4  
Old 09-03-2004, 02:56 AM
ferox ferox is offline
Web Hosting Guru
 
Join Date: Dec 2003
Location: Karachi, Pakistan
Posts: 316
Carp, If you post the PHP version, one of us here can try porting it to ASP for serverunion.

Reply With Quote
  #5  
Old 09-03-2004, 03:09 AM
ferox ferox is offline
Web Hosting Guru
 
Join Date: Dec 2003
Location: Karachi, Pakistan
Posts: 316
Follow Up: Not to mention, serverunion can even autorun the PHP scripts on Windows if it's not mandatory to be in ASP.

Reply With Quote
  #6  
Old 09-03-2004, 08:40 AM
barrywien barrywien is offline
Aspiring Evangelist
 
Join Date: May 2002
Location: Durham - UK
Posts: 445
You need a third party gateway to handle the sending of the actual SMS message, and you will need a second server to run the script from on a cron ever few minutes, if site goes down send SMS or email etc.

Reply With Quote
  #7  
Old 09-05-2004, 01:22 AM
serverunion serverunion is offline
Web Hosting Master
 
Join Date: May 2004
Location: madison, wi
Posts: 839
the reason for the ASP or windows solution is that I have a colocated windows box at high end datacenter, thought I could leverage that.

Reply With Quote
  #8  
Old 09-06-2004, 02:22 AM
mwaseem mwaseem is offline
Web Hosting Guru
 
Join Date: Dec 2003
Location: Pakistan
Posts: 339
Quote:
to check to see if sites are up and txt msg my phone if they aren't.
Does Servers Alive fulfils your requirements?

Quote:
Servers Alive can alert you via:
Pager/SMS - Receive numeric or alphanumeric pages.
Email - SMTP, ESMTP, or custom mailer.
Sound - Play the sound of your choosing.
Instant Messenger - Receive an ICQ, MSN or AIM alert or even a winpopup message

Syslog - Use a central syslog server to centralize logs.

Reply With Quote
  #9  
Old 09-08-2004, 10:29 AM
serverunion serverunion is offline
Web Hosting Master
 
Join Date: May 2004
Location: madison, wi
Posts: 839
Quote:
Originally posted by mwaseem
Does Servers Alive fulfils your requirements?
Looks great THANKS. Since I have box with 99.99 uptime, a lot more cost effective to run my own monitoring service.

Thanks for all the help...

Reply With Quote
  #10  
Old 08-01-2005, 11:20 PM
Kijit Solutions Kijit Solutions is offline
Disabled
 
Join Date: Jul 2005
Posts: 135
ServerUnion,

You can do the following:

PHP Code:
$fp fopen('http://servertocheck.com','r');
if (!
$fp){
mail('cellphonenumber@provider.com''Server Down yayyyy''hey wake up your server\'s down');
}
fclose($fp); 
You can find your cellphone's email-to-sms address by just looking around on google. For Rogers (Canadian Provider), its pcs.rogers.com. Say my number was 416-123-1234, my email would be 4161231234@pcs.rogers.com.

Make sure it's on a different server from the one you're checking.. else you won't get the message obviously.

You can stick this snippit in some global php file on a fairly large site so once someone accesses that site, they're involuntarly also checking your site for uptime. =) Or you can stick this in a cronjob using curl.

Reply With Quote
  #11  
Old 08-01-2005, 11:27 PM
gilbert gilbert is offline
Web Hosting Master
 
Join Date: Jun 2003
Location: United States of America
Posts: 1,831
which celphone provider are we talkin about

Reply With Quote
  #12  
Old 08-01-2005, 11:33 PM
Kijit Solutions Kijit Solutions is offline
Disabled
 
Join Date: Jul 2005
Posts: 135
You can find your cell phone provider's email here:
http://www.aipcom.com/support/email-finder.asp

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Apache Continues to Dominate Web Server Market in Netcraft May Survey Web Hosting News 2013-05-06 14:29:02
Researchers Urge System Admins to Check for New Apache Web Server Backdoor Malware Web Hosting News 2013-05-01 11:35:53
Web Host OrcsWeb Offers Support for Windows Server 2012 Web Hosting News 2012-08-24 11:08:35
Web Host 1&1 Enhances Dedicated Server Line with 32 Core, 64 GB RAM Server Web Hosting News 2011-12-20 15:30:05
DiscountASP.NET Launches Free Beta for Microsoft SQL Server 2012 Hosting Web Hosting News 2011-12-13 22:02:03


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?