magazine resources subscribe about advertising

New Architect Daily
Commentary and updates on current events and technologies

CMP Media E-Book

Download your copy today.

Research
Search for reports and white papers from industry vendors and analysts.

This Week at NewArchitect.com Subscribe now to our free email newsletter and get notified when the site is updated with new articles







Day of Defeat Online Gaming

 New Architect > Archives > 1999 > 02 > Webmaster's Domain

A Perl Script For Monitoring Apache Server Status

Web servers rarely occur singly. They tend to run in packs. If you're a typical Webmaster, you're not responsible for just one server, but for a whole herd. It's easy enough to manage one or two servers, but when there are a half-dozen or more, you really need some sort of central server-management tool to keep track of what's going on and alert you to problems. Ideally, such a tool would run at regular intervals, contacting each of the servers under your care, logging the results, and alerting you if it detects that a server is no longer responding to requests.

There are a variety of commercial tools for this purpose. The ones that readers of this column most often recommend include WebTrends Log Analyzer, which uses FTP and server-side scripts to collect server performance statistics from log files, and WindDance Networks WebChallenger, which uses packet sniffing to pull its information directly off the local area network.

However, I've always done these sorts of things myself on the theory that the tools you create yourself are most likely to meet your evolving needs. In this column, I present a short Perl script that I use to collect usage and status information from the remote and local Apache Web servers that I manage. With some modifications, this script can be turned into a full-featured Web analysis tool.

The Apache status Module

Versions 1.2




  Day of Defeat Online Gaming

home | daily | current issue | archives | features | critical decisions | case studies | expert opinion | reviews | access | industry events | newsletter | research | careers | info centers | advertising | subscribe | subscriber service | editorial calendar | press | contacts


Copyright © 2006 CMP Media, LLC Read our privacy policy, your California privacy rights, terms of service.
SDMG Web sites: BYTE.com, C/C++ Users Journal, Developer Pipeline, Dr. Dobb's Journal, DotNetJunkies, MSDN Magazine, Sys Admin,
SD Expo, SD Magazine, SqlJunkies, The Perl Journal, Unixreview, Windows Developer Network, New Architect

web2