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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th March 2009, 11:42
Mattz Mattz is offline
Junior Member
 
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default How is traffic calculated ?

Hi,

I'm doing some investigation about traffic analyzing on apache and mail on vhosts.

Because ISPconfig is capable of doing so, how is this exactly done ?

I'm checking the code to see if I can get some more info about it, but this topic might be valuable too.

For mail, is that calculated on the IMAP server or on the MTA itself ?

I hope I can figure out a standalone sample here

Cheers,

Matt
Reply With Quote
Sponsored Links
  #2  
Old 4th March 2009, 22:49
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,504
Thanks: 813
Thanked 5,265 Times in 4,129 Posts
Default

The apache traffic is calculated by analyzing the access log file. I dont have standalone a example for this, take a look in the script /root/ispconfig/scripts/shell/logs.php

For the mail traffic there is no log file, so ISPConfig uses a procmail recipe that analyzes the mail size before the mail is stored in the mailbox.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 5th March 2009, 00:02
Mattz Mattz is offline
Junior Member
 
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, thanks for the apache log, I alreayd have looked into this and I see almost how it's done.

If people have some good examples about that part, always welcome !

About mail, so pop and imap to the client are not calculated ?
Reply With Quote
  #4  
Old 5th March 2009, 00:14
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,504
Thanks: 813
Thanked 5,265 Times in 4,129 Posts
 
Default

No, we calculate just the incoming traffic.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Traffic Statistics Not Working tsj5j Installation/Configuration 11 21st February 2007 22:38
WEBALIZER FTP TRAFFIC CONT in WEB TRAFFIC dloopsrl Installation/Configuration 3 20th September 2006 17:39
Traffic Exceedance Mail Problem krishol General 4 17th February 2006 10:38
Traffic stats ok? BobbyQ Installation/Configuration 13 13th December 2005 11:27
Traffic Limit katschi Feature Requests 2 16th August 2005 23:40


All times are GMT +2. The time now is 02:18.


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