At 09:02 10.02.2001, David Croft wrote:
>If each customer has a separate IP address you can use IP accounting in
>the linux kernel. This will pick up all traffic to that IP address
>regardless of which service (mail, web, etc)
>
>David


>On Sat, 10 Feb 2001, Sumith Ail wrote:
>
> > Hello
> >
> > Since we are a hosting company, we would provide our customers to an 
> amount of data transfer per month, which would include there web, mail 
> and ftp traffic.
> >
> > Can anyone guide me to a solution for this. I understand that we would 
> require to analyse the log files for a domain wise results. But is there 
> a single solution for this
> >
> > We are using Apache, Qmail, Vpopmail, Proftpd, on RH linux 6.2 server.

And if not, you can extract
* HTTP-Traffic from Apache virtual server log (take i.e. wwwstat)

* FTP-Traffic from proftpd extra accounting log (per virtual FTP server)
i.e. ExtendedLog  /logdir/logfile-acc dirs,read,write accounting
Count via bc or perl

* Incoming SMTP-Traffic can be catched via maildrop (byte counter log)
[vpopmail@titan bieringer.de]$ more .qmail-testsize
| /usr/local/bin/maildrop /home/vpopmail/domains/domain/maildrop-testsize.conf

maildrop-testsize.conf:
logfile "/home/vpopmail/domains/domain/maildrop-testsize.log"
`echo $SIZE >>/home/vpopmail/domains/domain/maildrop-testsize.bytes`
to "!realaccount"
exit
Count via bc or perl, take twice and you have the expected POP-Traffic also 
included

TCP & IP-Overhead isn't counted, also on HTTP not the request traffic.

I've compared such values against IP accouting and got estimated:
~ * 1.1 for non HTTP
~ * 1.3 for HTTP (depending on content)

         Peter

Reply via email to