Results 1 to 3 of 3

Thread: Automatically Monitor and Restart Apache

  1. #1
    Will.Spencer's Avatar
    Will.Spencer is offline Retired
    Join Date
    Dec 2008
    Posts
    5,033
    Blog Entries
    1
    Thanks
    1,010
    Thanked 2,329 Times in 1,259 Posts

    Automatically Monitor and Restart Apache

    Apache is a great web server, but it is not without problems.

    One of those problems is that Apache can sometimes "hang" in a state where no pages are being served, but the Apache "httpd" processes are still running.

    This can be very badm because most server monitoring systems won't detect this error.

    m3rlin has created a pretty useful script for monitoring Apache for a specific error, running out of MaxThreads. The script is available at Automatically monitor and restart apache.

    The script is an excellent framework for monitoring other service outage issues which can plague Apache.

  2. #2
    freexs.org is offline Unknown Net Builder
    Join Date
    Dec 2008
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nice, I'm happy that I never had that problem during the last 1,5 years.

    BUt I remember me that I had that problem with my first server with a different control panel. I run my server now on Directadmin and this system controls the apache service too.

  3. #3
    Mr.Bill's Avatar
    Mr.Bill is offline One is glad to be of service
    Join Date
    Dec 2008
    Location
    Redmond, Oregon
    Posts
    828
    Blog Entries
    1
    Thanks
    72
    Thanked 350 Times in 182 Posts
    Now Will this is awesome thank you for pointing this out. A lot better then trying

    0 * * * * /etc/rc.d/init.d/httpd restart

    or

    15,30,45,59 * * * * /etc/rc.d/init.d/httpd restart

    Have been thinking of trying one of those but man to restart that often would be harsh

    Reverse IP Check ಠ_ಠ Proxy Sites
    <?php if ($youask == 'stupid question') { echo ('stupid answer'); } ?>

Similar Threads

  1. any nice server monitor tools ?
    By SonnyCooL in forum Managing
    Replies: 1
    Last Post: 1 October, 2010, 06:20 AM
  2. Replies: 4
    Last Post: 6 April, 2010, 16:07 PM
  3. Replies: 0
    Last Post: 2 October, 2009, 19:19 PM
  4. How to get emails automatically forwarded
    By WebEvader in forum Managing
    Replies: 3
    Last Post: 31 January, 2009, 20:36 PM

Tags for this Thread

Bookmarks

Posting Permissions

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