Current time: 11-26-2024, 12:16 AM Hello There, Guest! (LoginRegister)


Post Reply 
Awstats traffic versus Ispcp traffic
Author Message
kvaes Offline
Junior Member
*

Posts: 23
Joined: Jul 2007
Reputation: 0
Post: #11
RE: Awstats traffic versus Ispcp traffic
At the moment (less than 24h after the reset)
ispcp : 196.66 MB
awstats : 19.04 MB + 4.68 MB
domainY-traf.log : 26 MB

cat domain.Y-traf.log | ./count.sh
26 MB

count.sh
PHP Code:
#!/bin/bash
total=0
while read line
do
  
let total=total+line
done
let total
=(total/1024)/1024
echo "$total MB" 

Has there been any updates in the stats parsing scripts lately?
10-29-2007 05:49 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #12
RE: Awstats traffic versus Ispcp traffic
May I put an idea here?

Is awstats counting only the traffic of content that is really transfered and ispcp maybe every file - even if it was cached by the client?

Just a thought...

/J
10-29-2007 06:28 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #13
RE: Awstats traffic versus Ispcp traffic
ispCP is working with IPTABLES and is counting EVERY BYTE transferd on this Port! AWStats is _only_ using the ApacheLog.

Greez BeNe
10-29-2007 06:38 PM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #14
RE: Awstats traffic versus Ispcp traffic
BeNe Wrote:ispCP is working with IPTABLES and is counting EVERY BYTE transferd on this Port! AWStats is _only_ using the ApacheLog.

Greez BeNe

Yes but the iptables counting is server wide - the per-domain counting is done with the *traf.log apache logfiles...

/J
10-29-2007 06:59 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kvaes Offline
Junior Member
*

Posts: 23
Joined: Jul 2007
Reputation: 0
Post: #15
RE: Awstats traffic versus Ispcp traffic
The traffic values in the combined & the traf log are the same. So (imo) it's related to the parsing of those files. When doing the "manual count" of the traf file (check script above), it seems that awstats is doing the right thing, and ispcp is taking the whole traf file each time. (could be wrong here, thinking out loud)
10-29-2007 07:03 PM
Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #16
RE: Awstats traffic versus Ispcp traffic
Quote: the iptables counting is server wide
absolutely right; the data gatered from iptables is only displayed as the server's stats

I've never verified the traffic counting scripts, so they might need to be fixed.
Btw, by saying 'ispcp : 196.66 MB' you mean the value ispCP shows for web traffic, right? and you don't have neither a subdomain nor an alias, right?
(This post was last modified: 11-01-2007 07:40 AM by raphael.)
11-01-2007 07:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
kvaes Offline
Junior Member
*

Posts: 23
Joined: Jul 2007
Reputation: 0
Post: #17
RE: Awstats traffic versus Ispcp traffic
raphael Wrote:
Quote: the iptables counting is server wide
absolutely right; the data gatered from iptables is only displayed as the server's stats

I've never verified the traffic counting scripts, so they might need to be fixed.
Btw, by saying 'ispcp : 196.66 MB' you mean the value ispCP shows for web traffic, right? and you don't have neither a subdomain nor an alias, right?

I'm talking about the web traffic indeed. The domain has several subdomains, but their info is written to the traff & combined log too...
11-01-2007 07:54 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)