+ Reply to Thread
Results 1 to 5 of 5

Thread: Is apache running?

  1. #1
    squinky86 is offline Senior Member
    Join Date
    Jan 2008
    Posts
    100
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Is apache running?

    One of my complaints for WHB is that the uptime system monitors whether a server replies to a ping or not. To fix this, I have been working on some php scripts to look at apache's uptime instead of the network's uptime.

    I uploaded a small portion of it to my site: http://www.squinkyhosting.com/uptime

    This system checks how quickly WHB's servers take to start responding to a simple HTTP GET request on a plain html file. Note that this does not measure php execution times or whether the SQL server is overloaded. It should bail out pretty quickly if the server is dead, and if apache is overloaded, you can see the lag time go up to 20 seconds (at which time, a timeout is recorded).

    I tried to make the scripts as efficient as possible, but since it's using the GD library, it may get a little resource intensive. As such, please don't refresh my page(s) too often.

  2. #2
    squinky86 is offline Senior Member
    Join Date
    Jan 2008
    Posts
    100
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Applause to WHB: from my intermittent, random monitoring, apache has been stable and snappy on all servers today . It hasn't taken more than a quarter of a second to respond to a static inquiry for any server.

  3. #3
    Tony's Avatar
    Tony is offline Bad Influence
    Join Date
    Apr 2007
    Location
    West Virginia Blue Ridge
    Posts
    604
    Servers
    SS3
    WHB Points this Month
    15.00
    WHB Points
    175.00
    Thanks
    2
    Thanked 8 Times in 8 Posts

    Default

    Interesting, in an academic sense I guess. But, being on shared hosting, I'm much more interested in the real world response time of my website, and usually that has nothing at all to do with Apache.

    I mean, Apache can be up and fine for 6 months, but one bad hop or one runaway script on the server can bring things to a crawl. I don't need a script to tell me things are crawling.

    Now, if you can write a script that will give the cause of slowdowns, get back to me!

  4. #4
    Matt R.'s Avatar
    Matt R. is offline WeeHBie
    Join Date
    Jul 2006
    Posts
    1,394
    WHB Points this Month
    0.00
    WHB Points
    60.00
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default

    Monitoring Apache isn't necessarily accurate either, though. With a clean Apache restart, there is literally milliseconds that the site won't respond (most browsers won't even notice) but it would be shown as an Apache restart, etc.
    Matt Russell
    WebHostingBuzz CEO

    Follow me on Twitter: http://www.twitter.com/mattdrussell

  5. #5
    squinky86 is offline Senior Member
    Join Date
    Jan 2008
    Posts
    100
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I modified the script to make sure it was getting "200 OK" responses from apache now.
    You guys are right, it's still not accurate, but it is better than pinging. I think I already qualified this by saying that php execution time or SQL server usage are not measured. Unless I have an account on each server, it's going to be very difficult to measure what's overloaded.
    Last edited by squinky86; 01-17-2009 at 06:42 PM.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts