HTTPd

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
User avatar
ablyler
Posts: 40
Joined: Tue Mar 19, 2002 7:00 pm
Location: Ann Arbor, MI
Contact:

HTTPd

Post by ablyler »

http://www.blyler.cc/cacti_addon_webstats.php

Input:
-Log file (optional)

Returns:
-# of total responses
-# of 200 level responses
-# of 300 level responses
-# of 400 level responses
-# of 500 level responses

Note: This code is based off of the webhits.pl script that is included in the cacti dist.
Last edited by ablyler on Sun Dec 01, 2002 9:03 pm, edited 1 time in total.
User avatar
ablyler
Posts: 40
Joined: Tue Mar 19, 2002 7:00 pm
Location: Ann Arbor, MI
Contact:

Version 0.02

Post by ablyler »

Added support for rotated logs. For example I use:

Code: Select all

# perl webstats.pl /var/log/httpd/access_*
The output is still in the same format.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest