Howdy,
I have bandwidth monitoring setup in Virtualmin. This seems to work fine with any number of Servers and/or Subservers.
However, I think I’m seeing a problem when dealing with sub-domains.
It looks like when creating a new sub-domain, that Virtualmin sets up the logfile to point to the same logfile as the parent server. Which in itself is fine.
But, when doing bandwidth statistics, it appears as if the parent server and sub-domain are each counted seperatly, meaning the same data is being counted twice (or more if there’s more sub-domains).
Basically, one of our users created “domain.com”. So far this month, it’s used 100MB of bandwidth. They’ve also created “sub1.domain.com”, “sub2.domain.com”, and “sub3.domain.com”, all of which point to the same access.log.
They’re each listing as having used 100MB, or a total of 400MB (the primary domain plus the 3 subs).
Now, I could have Apache log the domain name of the virtualhost, but at first glance it doesn’t look like Virtualmin is looking for that.
Is this by chance a bug, or is there something I can do to get around this?
Thanks!
-Eric