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.
HTTPd
Moderators: Developers, Moderators
Version 0.02
Added support for rotated logs. For example I use:
The output is still in the same format.
Code: Select all
# perl webstats.pl /var/log/httpd/access_*
Who is online
Users browsing this forum: No registered users and 1 guest