View Full Version : Bandwith question
AmonRa
12-01-2003, 07:54 AM
Hi there,
From when to when is the traffic calculate program running? Does the user statistics always begin on the first of a month and is it always ending on the 30/31 of a month? Or is it possible to change those dates?
I ask this because i received an email which said that i'm almost reach my limits of bandwith. But it's 1 dec. today. When is the kbytes counter reset?
ProWebUK
12-01-2003, 08:24 AM
The bandwidth reset is done by a monthly cron job, so you would get the account reset whenever that takes place.
Chris
l0rdphi1
12-01-2003, 10:44 AM
I have a user whos bandwidth I am almost 100% sure was not reset. I am currently confirming that, but this user was barely using 3gb of bandwidth per month, and if their stats really were reset, he/she must now be using close to 120gb bandwidth per month, which isn't likely.
I'll reply again shortly.
l0rdphi1
12-01-2003, 10:58 AM
Yes, I can confirm it did not reset for this user.
How can I go about resetting it manually?
ProWebUK
12-01-2003, 11:50 AM
As root:
echo 'action=reset&value=username&type=user' >> /usr/local/directadmin/data/task.queue
Chris
l0rdphi1
12-01-2003, 12:31 PM
Yep, that worked.
It looks as though if an account is locked due to bandwidth usage, the account will not be reset and unlocked when a new month comes around.
Oh well.
FarCry
12-01-2003, 04:05 PM
Surely that cant be right... if it was then a user would never become unsuspended :(
l0rdphi1
12-01-2003, 05:13 PM
Yeah, hopefully this can be fixed soon :D
Icheb
12-01-2003, 11:03 PM
I just posted about this in another (a bit older) thread, none of my users were reset.
I've got 482 mb of traffic yesterday (MRTG), and a few users are already above 4 Gb for december, this can't be right...
Did the version update cause this or something ?
l0rdphi1
12-01-2003, 11:38 PM
Originally posted by ProWebUK
As root:
echo 'action=reset&value=username&type=user' >> /usr/local/directadmin/data/task.queue
Chris
I was wrong, that only worked until the midnight. Now the user's bandwidth went back to the old value, and the account was relocked.
Now, once again, how do I reset a user's bandwidth?
RonZo
12-02-2003, 02:01 AM
Look at http://www.nivedita.nl/dataver.gif
As you can see it keeps counting on. Bandwith doesnt get reset...
And "serverstats" neither...
Only webalizer started a new month :p
ProWebUK
12-02-2003, 06:30 AM
Originally posted by l0rdphi1
I was wrong, that only worked until the midnight. Now the user's bandwidth went back to the old value, and the account was relocked.
Now, once again, how do I reset a user's bandwidth?
I think the best advice I could currently give you would be to contact official support, it seems very unusual and the reset problems becoming more common around the forum, im sure there may be a bug that DA should know about as soon as possible, either way there are lots of problems running around regarding this at the moment.
I will contact Mark as soon as he gets online, until then, its either send them an email or run the command temporarily until its sorted.
Chris
Guust
12-02-2003, 08:26 AM
Hi,
My bandwith is not yet reset this month(already 2 december). It seems pretty normal to have a bandwith reset at the first of the month isn't it?
What can be the problem, and better: what can I do to let it reset?
UltimeWWW
12-02-2003, 08:27 AM
Same thing here.
It do seems like a bug that needs to be fixed ASAP :)
John, come here :)
ProWebUK
12-02-2003, 08:45 AM
Just to inform you all, I have contacted Mark with a link to this thread. hopefully he will take a look soon and get something sorted :)
Chris
l0rdphi1
12-02-2003, 08:45 AM
Yeah I emailed support@ referring them to this thread ASAP. Wonder what's up. No reponce as of yet :(
ProWebUK
12-02-2003, 08:46 AM
Think Mark is saving everyone... he's here :D
l0rdphi1
12-02-2003, 08:47 AM
yay :D :p
DirectAdmin Sales
12-02-2003, 09:19 AM
Hi guys,
echo "action=reset&value=all" >> /usr/local/directadmin/data/task.queue
That will do the trick, but we are going to send out an update within the next hour or three that will fix the problem and refresh stats for everyone, so you don't have to do anything.
Mark
l0rdphi1
12-02-2003, 09:35 AM
Thanks guys! :D
I'll just hold off for the broadcast.
AmonRa
12-02-2003, 12:16 PM
Thank you all!
l0rdphi1
12-02-2003, 01:29 PM
Yeah. Just hit the 'Update DirectAdmin' button and you're set :D (that is if it hasn't been globally auto-upgraded already :) )
Thanks again.
DirectAdmin Support
12-02-2003, 03:44 PM
If anyone was interested, the bug is listed here:
http://www.directadmin.com/features.php?id=245
John
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.