log_server_status revision 64185f9824e42f21ca7b9ae6c004484215c031a7
911N/A# ==================================================================== 837N/A# Copyright (c) 1995-2000 The Apache Software Foundation. All rights reserved. 561N/A# Redistribution and use in source and binary forms, with or without 561N/A# modification, are permitted provided that the following conditions 561N/A# 1. Redistributions of source code must retain the above copyright 561N/A# notice, this list of conditions and the following disclaimer. 561N/A# 2. Redistributions in binary form must reproduce the above copyright 561N/A# notice, this list of conditions and the following disclaimer in 561N/A# the documentation and/or other materials provided with the 561N/A# 3. All advertising materials mentioning features or use of this 561N/A# software must display the following acknowledgment: 561N/A# "This product includes software developed by the Apache Software Foundation 561N/A# 4. The names "Apache Server" and "Apache Software Foundation" must not be used to 561N/A# endorse or promote products derived from this software without 561N/A# prior written permission. For written permission, please contact 561N/A# 5. Products derived from this software may not be called "Apache" 561N/A# nor may "Apache" appear in their names without prior written 561N/A# permission of the Apache Software Foundation. 561N/A# 6. Redistributions of any form whatsoever must retain the following 561N/A# "This product includes software developed by the Apache Software Foundation 837N/A# THIS SOFTWARE IS PROVIDED BY THE Apache Software Foundation ``AS IS'' AND ANY 837N/A# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 911N/A# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 911N/A# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE Apache Software Foundation OR 911N/A# ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 911N/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 837N/A# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 837N/A# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 561N/A# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 561N/A# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 837N/A# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED # OF THE POSSIBILITY OF SUCH DAMAGE. # ==================================================================== # This software consists of voluntary contributions made by many # individuals on behalf of the Apache Software Foundation and was originally based # on public domain software written at the National Center for # Supercomputing Applications, University of Illinois, Urbana-Champaign. # For more information on the Apache Software Foundation and the Apache HTTP server # Mark J Cox, UK Web Ltd 1996, mark@ukweb.com # This script is designed to be run at a frequent interval by something # like cron. It connects to the server and downloads the status # information. It reformats the information to a single line and logs # it to a file. Make sure the directory $wherelog is writable by the # user who runs this script. $port =
"80";
# Port on server $request =
"/status/?auto";
# Request to send