How is traffic calculated ?
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 :)
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.
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 ?
No, we calculate just the incoming traffic.
|All times are GMT +2. The time now is 04:25.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.