Re: Monitoring a Web Server

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Mon, 23 Sep 1996 21:20:51 +0200

Chris Jason Richards <richards@tamu.edu> said:

Chris> Has anyone written an app. to monitor the status of an http
Chris> server (whether it is up/down, hits, or whatever). I'm using
Chris> Apache 1.1.1 and if anyone has any work they would like to
Chris> share I would appreciate it (no sense in re-inventing the
Chris> wheel :)

You should take a look at http://http-mib.onramp.net. This page
documents an ongoing effort to define a SNMP MIB for the management of
WWW servers. I know of at least two groups working on an
implementation for the apache server. However, this is work in
progress and not ready for public use right now.

An example implementation of an early version of this MIB is included
in the scotty sources. Look at the agents/snmpd-http.tcl file which
implements an early draft (called the xxx.mib). This version reads the
logfile and makes some counters of received requests and returned
responses available.

You can write a short-term management script which simply checks the
server (by doing a http head on the server) and reads the contents of
the apache status page. If you want to contribute to a more general
long-term solution, please join the http-mib mailing list (see the URL
above).
Juergen

--
Juergen Schoenwaelder schoenw@cs.utwente.nl http://www.cs.utwente.nl/~schoenw
Computer Science Department, University of Twente,   (Fax: +31-53-489-3247)
P.O. Box 217, NL-7500 AE Enschede, The Netherlands.  (Tel. +31-53-489-3678)