ASTRAPI

Well-Known Member
Jul 8, 2008
321
0
66
Hello

I have a dedicated server with cPANEL and i want to ask if it's possible when i got my traffic limit before the end of the month 3tb to auto suspend my account as my provider can't do that and they will over charge me....

Thank you
 
Last edited:

ASTRAPI

Well-Known Member
Jul 8, 2008
321
0
66
Ops sorry i was edit my post.

Can you give me more easy to follow details please ?
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
You just need to set the bandwidth limits on the user accounts low enough that
they get suspended if they use up their portion of your bandwidth but that will
only be checked once per day so if someone has a huge surge in bandwidth usage,
they won't be suspended until the next check cycle.

If you want to go a bit deeper, you can setup monitoring scripts to hook into
the Cpanel API to suspend accounts to check activity more frequently than
daily or check on other activities but for bandwidth itself, Cpanel is capable
of doing that itself if you can live with the daily check limitation.

WHM also has a menu option to unsuspend the user's who get suspended later

If you are running up close to your total account bandwidth usage though,
sounds like you have some very active sites or possibly someone doing
something that they shouldn't be doing and might want to check that.
 
Last edited:

ASTRAPI

Well-Known Member
Jul 8, 2008
321
0
66
I hace only one account there as i use it as dedicated and i am intresting on your first recomendation.

Can you give more details wher e is that setting?

Thank you
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
Generally you can specify this when you create the account plan package.

However, you can also go to "View Bandwidth Usage" under "Account Information"
in WHM and you will get a list of all your web sites on the server and on that screen,
there is an icon shown with each site under the "Limit" column and if you click that,
you can set the bandwidth usage limit for each account.
 

PlatinumServerM

Well-Known Member
PartnerNOC
Jul 10, 2005
400
3
168
New Jersey, USA
cPanel Access Level
Root Administrator
Please note that when dealing with high volumes of bandwidth (ie, 1000's of gig's), it's quite common that the count in whm is not accurate. You may want to check with your datacenter to see if they have mrtg graphs that you can see for the most accurate count.
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
Please note that when dealing with high volumes of bandwidth (ie, 1000's of gig's), it's quite common that the count in whm is not accurate. You may want to check with your datacenter to see if they have mrtg graphs that you can see for the most accurate count.
This is very true! The stats shown in Cpanel is built only on web traffic for
each account and doesn't take into account default IP traffic to or from the
server not going to a specific site or any other services or processes that
might be installed on your server outside of Cpanel also using traffic.

However, setting the accounts to auto suspend is still not a bad idea but
given what PlatinumServerM just pointed out (and I agree), you might want
to set the limits on each account to something slightly lower than what
they really need be set just as a margin of safety for yourself.

Other than that, keep a close eye on your traffic reports, system logs,
and provider server traffic information and you won't have any surprises
and will know how much is being used and if you are getting close to
your server bandwidth limits.