Most Read Posts   -   About Jim Karter   -   Make Money on Twitter

Managing Uptime on Many Sites

Do you run many sites? How do you manage them? How do you know that the sites you run are actually running. There may be many reasons for which your site can go down. For example:

  • High bandwidth uses
  • High resource (CPU/Memory) uses on shared server
  • Spam sent from your server
  • Disk crash on your dedicated server
  • Server hang
  • Somebody hacks into your account
  • Or any other similar problem…


So what can you do to know asap, that your site is down? You can use those high end paid service which sends you SMS if your site is not reachable. These services gets very expensive when you have quite many sites.

How do I do it?
I just run a small perl script on one of my site and set it up as my homepage. So whenever I start my browser, that script is run and it checks all my servers/sites to verify that the are “reachable” and actually have my “website content” up.

You can see the perl script code here. You can also see it in action here.

This script reads list of URLs and “unique” string from a file called urls.txt and fetch the homepage for each url in the file. It also verifies the string mentioned in the file that this string actually exists on the page. If it does not, then it print an error message.

So if you also run many websites on many different servers, you can use this script to see from one place that all your sites are “reachable” and have your “content up” (not suspended) on it.

To use the script:

  • Download this file and rename it to monitor.cgi
  • Create a urls.txt file similar to this one and put it in the same directory
  • Upload it into your cgi-bin directory of one of your site
  • Chmod 755 the monitor.cgi file and run it from the browser.

Let me know through comments if this perl script is of any help to you.

This post was written on 20th December 2007 and was scheduled to be posted when I am on vacation. So that means, I am still on vacation.

Share It and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Propeller
  • StumbleUpon
  • Technorati

Welcome back!

You should follow me on twitter here.

22 Responses to “Managing Uptime on Many Sites”

  1. Pushkar responded on 29 Dec 2007 at 10:41 pm #

    Thanks :)

  2. Daey responded on 30 Dec 2007 at 9:36 am #

    this can be very helpful. I will give it a try :)

  3. Mike Huang responded on 30 Dec 2007 at 10:50 pm #

    Great post! I definitely will give your blog a try because there’s great content!

    -Mike

  4. Nexis responded on 30 Dec 2007 at 11:10 pm #

    thanks Man .. Will need it in future

  5. The New Year Resolutions Are Here And 2008 = Bloggers | Bloggin-Ads responded on 01 Jan 2008 at 8:42 am #

    […] John Chow, Garry Conn, Zac Johnson, Darren Rowse, Jeremy Schoemaker, Carl Ocab, Caroline Middlebrook, Claire, Milk Man, Neil Duckett, Ben Cook, Bob Buskirk, Jim Kukral, Big Bald Guy, Jim Karter, Nate Whitehill, Stephen Fung, Ed Lau, Tyler Cruz, David, Marco Richter, Gerardo, Kiwi Pulse, J.D., Jon Waraas, DNseo, The University Kid, Max Lee, Paul Hartrick, Steven Finch, Keith Ireland, Nick Sanders […]

  6. Neotrepreneur responded on 01 Jan 2008 at 11:41 am #

    Great script. Will definetly be useful once i get a lot of websites up and running

  7. suman responded on 03 Jan 2008 at 2:01 am #

    thanks for the info

  8. Flavian responded on 05 Jan 2008 at 1:50 am #

    Hi Jim, i have been reading your blog for past couple of months and im very inspired on how have grownup to the stage your in now.
    Buddy i have a small prob… i want to start a company of my own and i want to know how to register a company name in Mumbai.. since your a Mumbaikar and have a registered company name i felt that it would be appropriate to seek help from you… Pls bro help me to get started…

    You can email me also.

    Regards

  9. Leviathan responded on 05 Jan 2008 at 11:22 pm #

    Thanks for the script Jim :)

    I sure wanted something like this.

  10. Leviathan responded on 05 Jan 2008 at 11:23 pm #

    Thanks for the script Jim :)

    I sure wanted something like this. Saves me time and is simple.

  11. Saahil responded on 08 Jan 2008 at 9:29 pm #

    Thanks for the script, it will definitely save time. are you still on vacation? I’m interested to see your earnings for december.

  12. Saad responded on 09 Jan 2008 at 1:48 pm #

    Thanks for the tip!
    Just tried the script and it doesn’t work for me :(

  13. jimkarter responded on 11 Jan 2008 at 6:12 am #

    Saad, please let me what exactly is not working. I hope you are well aware or how to run perl files (chmod, #! etc. stuff). If not, lemme know.
    Saahil, I just returned back and will be posting my earnings soon.

  14. MP3Nation responded on 14 Jan 2008 at 4:03 am #

    Thanks a lot.I’m using a free site now.Will be very helpful when I buy a domain in future

  15. Carol responded on 28 Jan 2008 at 8:27 pm #

    Great information! Thank you for sharing. This is will be very useful.

  16. blogger responded on 27 Mar 2008 at 5:51 am #

    thanks. i might add that there are also some desktop app (win, linux) that do the same.

  17. OsiriX responded on 17 May 2008 at 3:01 am #

    Hello
    I can’t get it working.
    I’m not sure if I have installed it right.
    I have uploaded the files to cgi-bin and Chmod 755 the monitor.cgi.
    When I go to http://www.site.com/cgi-bin/monitor.cgi, I see the site, without the styles on it.
    I don’t know what I’m doing wrong.
    I hope you can help me.

  18. Jim Karter responded on 18 May 2008 at 3:44 am #

    Make sure you have uploaded in ascii mode. Also make sure that hash bang (#!) path in the first line of monitor.cgi is correctly set for your host. If it is still not working, contact me and let me know the url. I will check it out.

  19. OsiriX responded on 18 May 2008 at 4:13 am #

    Hey thanks Jim!
    I didn’t uploaded it in ascii mode.
    It’s working now.

  20. Akash responded on 08 Jun 2008 at 10:21 am #

    Jim,

    Very useful script.

    Thanks,
    Akash

  21. SEO Tricks responded on 20 Sep 2008 at 12:00 pm #

    Thanks for the script ;)

  22. Mega Champ responded on 09 Nov 2008 at 11:49 pm #

    This is one great script, and can you also tell which is the affiliate script you are using, the “GO” script is it free?

  1. Sponsored links from google adsense.

Trackback URI | Comments RSS

Comments Closed

You should follow me on twitter here.

ADD YOUR WEBSITE

Home | Sitemap