Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I would like to be alerted if my site is down (for example have an email sent to me).

The site is written in asp .net it is deployed on a dedicated server, windows 2008 with IIS 7

share|improve this question
1  
Not the answer but related: downforeveryoneorjustme.com will let you know if you have the connectivity problem or if your site is down. –  Guy Apr 9 '12 at 20:02
add comment

migrated from stackoverflow.com Jan 31 '11 at 1:33

This question came from our site for professional and enthusiast programmers.

4 Answers

up vote 9 down vote accepted

we use Pingdom, there is a Free plan, it checks your site every 5 minutes, but you can check only one site, url : http://www.pingdom.com/

With BasicState you can check unlimited number of sites and check frequency is 15 minutes, url : http://basicstate.com/

Update: There is another great site: http://www.monitor.us/free-IT-system-monitoring

share|improve this answer
    
Thanks I will try them out. –  Aba Dov Jan 30 '11 at 8:59
add comment

If you have a Linux machine in your environment, this should be a relatively simple task in any scripting language that can call out to the shell. Take a look at the wget and sendmail commands for retrieving files over HTTP and sending e-mail, respectively.

The idea is to try retrieving something like index.html from your site. If the attempt fails, the script sends you an e-mail. Once you have the script working, scheduling it is easy using cron.

I'm not as familiar with Powershell on Windows, but I bet if you search for "wget powershell" you would find some interesting results. I've heard scheduling Powershell scripts is similarly straightforward.

share|improve this answer
add comment

The best way to monitor the site is to do so from a source that simulates your users, so for a public facing site that means a monitor external to your organization (e.g., SiteUptime - random example, I've never used them nor do I know anything about their reputation). For an intranet application, I'm sure there are open source solutions you can deploy on the enterprise.

Your web server application may be running but because of a network or DNS issue, your users cannot reach it. It doesn't mean your application is down, but your users will not appreciate the distinction.

share|improve this answer
add comment

Well you can periodically ping a couple of sites, If non of them response for let's say 5 min. You are probably down.

Make sure to ping both local, country and continent located servers. In this way you can see if you have a LAN problem or a WAN problem and if it is worldwide (you are probably down) or if it is a backbone problem to certain parts of the world.

The second thing to think about is how reliable your DNS is. If the DNS is down, you will get nowhere. So to detect this, mix with both domain names and IP addresses.

To be able to mail yourself, you need of course a local Mail server (if your WAN is down).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.