How is traffic calculated ?

Discussion in 'Developers' Forum' started by Mattz, Mar 4, 2009.

  1. Mattz

    Mattz New Member


    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 :)


  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
  3. Mattz

    Mattz New Member

    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 ?
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    No, we calculate just the incoming traffic.

Share This Page