How to get notified that server is down ?

Discussion in 'Site & Server Administration' started by poseidon, Jun 17, 2008.

  1. #1
    well somehow apache on my vps server automatically stops and my sites stops loading until I restarts the server. I am still trying to debug the problem but was wondering is there anyway I can know immediately when the server gets down.

    May be some script or some online service which monitors such things.

    Cheers
     
    poseidon, Jun 17, 2008 IP
  2. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #2
    shallowink, Jun 17, 2008 IP
  3. amitpatel_3001

    amitpatel_3001 Results Follow Patience

    Messages:
    14,074
    Likes Received:
    1,178
    Best Answers:
    0
    Trophy Points:
    430
    #3
    There is a paid script which i use to monitor my server, do let me know if you are interested.
     
    amitpatel_3001, Jun 17, 2008 IP
  4. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #4
    Try Pingdom. They have a free trial with free SMS, using them at the moment, and they're great. They use multiple locations too, but I'm not affiliated with that if that's what you're thinking :)
     
    jayshah, Jun 17, 2008 IP
  5. jamesterror

    jamesterror Guest

    Messages:
    283
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I use to use a site called SiteUpTime.com

    Alternativly, if you have a server elseware which has PHP enabled, you can here a tutorial here.

    Thanks
     
    jamesterror, Jun 17, 2008 IP
  6. mellow-h

    mellow-h Peon

    Messages:
    750
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The best you can find to monitor your http as well as the result timing using wormly. It will give you a small chart regarding the http TCP, EXEC, Transfer timing which is very helpful to understand what was, is the status of your web server.

    Checkout http://www.wormly.com
     
    mellow-h, Jun 17, 2008 IP
  7. Billyb0b

    Billyb0b Peon

    Messages:
    100
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You can buy another server and put a script on it like

    <?php
    if(!fsockopen("domain ip",80)) die("offline"); else die("online");
    ?>

    Or you could make it so if its offine it emails everyone from your email database (Which you'll have backed up on the other server) saying its offline and will be on soon or something.
     
    Billyb0b, Jun 18, 2008 IP
  8. amitpatel_3001

    amitpatel_3001 Results Follow Patience

    Messages:
    14,074
    Likes Received:
    1,178
    Best Answers:
    0
    Trophy Points:
    430
    #8
    server2k is one of best tool
     
    amitpatel_3001, Jun 18, 2008 IP
  9. RectangleMan

    RectangleMan Notable Member

    Messages:
    2,825
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    210
    #9
    RectangleMan, Jun 18, 2008 IP
  10. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #10
    below you already got all the useful advice

    what you can do on a long time basis for permanent uptime control is to team up with friends owning another site / server and watch each other's server using any of above scripts
    in addition to eMail notification to your MOBILE device eMail box you may also consider setting up or connecting to an SMS portal that sends you a SMS "server down notification" to your mobile
    and
    if you love high tech and smart phones you may even use any of the high end smart phones such as the Nokia N95 or comparable phones that allow www connection and possibly ssh connection to your server - thus allowing you to instantly restart your apache from your mobile.

    to find your current cause for server stop - study your error_log and your /var/log/messages and /var/log/warn as well. search for events just preceding by seconds your apache stops.

    also check your access_log for last accesses just the seconds before your apache stops to see if a particular script or visitor action causes apache to stop.
     
    hans, Jun 19, 2008 IP
  11. MayurGondaliya

    MayurGondaliya Well-Known Member

    Messages:
    1,233
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    170
    #11
    There are some firms that offers such service, For exapmple, siteuptime, mon.itor.us, etc. I am using mon.itor.us personally and satisfied with them.
     
    MayurGondaliya, Jun 20, 2008 IP
  12. sweetfunny

    sweetfunny Banned

    Messages:
    5,743
    Likes Received:
    467
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I have tried them all and yes Pingdom is the best, it's got the best graphs, interface etc and you can also monitor MySql as well as DNS along with HTTP, response time, ports, email etc.

    Monitoring MySql is important, a lot of monitors don't check this and if it fails you won't know because the server is technically still responding via regular pings.
     
    sweetfunny, Jun 20, 2008 IP
  13. tsenseless

    tsenseless Active Member

    Messages:
    368
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    60
    #13
    On VPS typically this problem occurs when your load spikes and your host VPS service automatically kills the apache process for using too much cpu and/or memory. If you adjust your apache configuration to spawn less children and accept less total volume of requests at once then this will stop happening. You could also increase your VPS specs to keep this from happening.

    The best way to monitor a server would be with a program such as Nagios, that has the ability to alert you when your server goes offline through a variety of methods.
     
    tsenseless, Jun 23, 2008 IP
    poseidon likes this.
  14. zacharooni

    zacharooni Well-Known Member

    Messages:
    346
    Likes Received:
    20
    Best Answers:
    4
    Trophy Points:
    120
    #14
    zacharooni, Jun 23, 2008 IP
  15. alikuru

    alikuru Peon

    Messages:
    44
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    You can try mon.itor.us. A free service which has a user friendly interface.
     
    alikuru, Jun 23, 2008 IP
  16. sarahk

    sarahk iTamer Staff

    Messages:
    28,830
    Likes Received:
    4,541
    Best Answers:
    123
    Trophy Points:
    665
    #16
    Another vote for mon.itor.us - free and effective. Plus they use servers in 3 different areas.
     
    sarahk, Jul 3, 2008 IP