|
[partial-HowTo] mod_cband
|
| Author |
Message |
BeNe
Moderator
    
Posts: 3,168
Joined: Jan 2007
Reputation: 42
|
RE: [partial-HowTo] mod_cband
Quote:All other domains have "#" in front of the settings (like CBandUserLimit).
Should I manually remove them for every domain?
If you want to enable it for all Domains remove the "#" in the ApacheTemplate under /etc/ispcp/apache/parts/dmn_entry.tpl (not sure  )
Quote:If I set CBandUserLimit 1Mi the page is displayed correctly.
If I set CBandUserLimit 1 the bandwith exceeded page is displayed.
Beacause "1" means 1kb and not 1MB. Is per dafault in kb
Quote:What does "Mi" mean?
Here is the cband legend:
Code:
Transfer speeds:
* kbps: 1024 bits per second
* Mbps: 1024*1024 bits per second
* Gbps: 1024*1024*1024 bits per second
* The default is kbps.
Transfer quotas:
* K: 1000 bytes
* M: 1000*1000 bytes
* G: 1000*1000*1000 bytes
* Ki: 1024 bytes
* Mi: 1024*1024 bytes
* Gi: 1024*1024*1024 bytes
* The default is K.
Time periods:
* S: seconds
* M: minutes
* H: hours
* D: days
* W: weeks
* The default is S.
Quote:Is it possible to set it to unlimited?
I mean no, or you set a damn high score like 9999999999999......
Quote:domain.tld/cband-stats and domain.tld/cband-stats-me doesn't work either.
What happens ? Which site is displayed ?
Any ApacheLogs ?
Greez BeNe
![[Image: ispcpsw.png]](http://bene.homelinux.net/autoindex/Files/ispCP%20Omega/ispcp_userbars/ispcpsw.png)
Ein Betriebssystem ist immer nur so gut und sicher wie der Administrator der es verwaltet.
Wie gut der Administrator jedoch seine Fähigkeiten ausspielen kann, legt das Betriebssystem fest.
-> Linux rulZ!
|
|
| 03-28-2008 03:38 AM |
|
xclanet
Junior Member

Posts: 18
Joined: Apr 2007
Reputation: 0
|
RE: [partial-HowTo] mod_cband
BeNe this is great! But i found a big bug using this mod...
If i do a reboot on my server or if i just do a "/etc/init.d/apache2 restart", all traffic counted so far is reseted... that's not a good way to go! Can mod_cband get info from mysql instead of saving it on a file?
If i define a traffic limit of 1000Mb on a domain, and after 2 days i reboot my server, the client gains 2 days of traffic.
I googled a bit and noticed that they are more ways to achieve the same goal. Maybe one of them can be used with ispcp.
|
|
| 04-26-2008 08:52 AM |
|