HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=18)
-   -   How is traffic calculated ? (http://www.howtoforge.com/forums/showthread.php?t=32063)

Mattz 4th March 2009 11:42

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

till 4th March 2009 22:49

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.

Mattz 5th March 2009 00:02

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 ?

till 5th March 2009 00:14

No, we calculate just the incoming traffic.


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

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