Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th December 2010, 07:27
george_yohng george_yohng is offline
Junior Member
 
Join Date: Jun 2010
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default AWStats log of bandwidth bytes

Hello,

Default ISPConfig site log configuration includes only a document size, but not the actual download size. I wonder if it makes sense to add this to ISPConfig:

1. Enable Apache mod_logio, if it is present
2. Add %I %O to the end of ISP custom log in Apache's ispconfig.conf
3. Modify AWStats log format template to have %bytesd not for the document size, but for where %O is placed.

Presently - if a Chinese bot connects to the site to download 10MB file and immediately disconnects after downloading 1K, log will still register 10MB size for each request and thus awstats/ispconfig_bandwidth will report incorrect data.

For hosted user accounts this makes sense, because a user may visibly exhaust his bandwidth allowance easily, without actually exhausting anything - by means of these false entries. This happens all the time when somebody uses a download manager to download files.

I first noted this problem when my colleague asked, why our web site ISPConfig bandwidth stats stated 100GB bandwidth, while on a Cisco switch it was showing somewhere around 20MB consumed total traffic.

Thanks,
George.

Last edited by george_yohng; 15th December 2010 at 07:30.
Reply With Quote
Sponsored Links
  #2  
Old 15th December 2010, 12:42
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

I dont see a problem if someone wants to make patches for this if this apache module is available in the default repositories of all supported linux distributions (debian, ubuntu, centos, fedora and suse) and if this setting is implemented to be configurable.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 15th December 2010, 18:19
george_yohng george_yohng is offline
Junior Member
 
Join Date: Jun 2010
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by till View Post
I dont see a problem if someone wants to make patches for this if this apache module is available in the default repositories of all supported linux distributions (debian, ubuntu, centos, fedora and suse) and if this setting is implemented to be configurable.
I can certainly do it for my OpenSUSE installation script, and it is available in the default repository of OpenSUSE.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MyDNS Segfaults crypted General 19 22nd July 2010 23:49
FTP Problems wabz Installation/Configuration 6 11th January 2010 19:51
Ftp problems timeout reny2000 General 6 23rd December 2009 12:09
Unable to receve email aberrio Server Operation 16 8th July 2009 11:26
slow download through webserver problem snewp Technical 14 9th May 2008 06:25


All times are GMT +2. The time now is 08:17.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.