Monthly Bandwidth Update problem..

hky123

Verified User
Joined
Apr 14, 2007
Messages
18
Location
Pune
Hi,
There is a strange problem i am facing with one of my DA server.This is
the 2'nd of May and the monthly Bandwidth has not been updated yet. It's
still showing the last month bandwidth usage alongwith the current month
usage.

Can anybody please let me know what might be the problem and how should i
resolve it.

Regards,
Harshal.
 
Check your /etc/cron.d/directadmin_cron file and crond service. If you want to reset the bandwidth:
Code:
echo "action=reset&value=all" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d

Good luck! :)
 
In addition to what smtalk said, likely the reset cron just didn't get run, or something along those lines. This could have happend for various reasons, either the box being rebooted at that time, possibly crond not running, the directadmin_cron not having permissions that the crond likes, etc..


If you want to save this months data but still reset last months data, use this instead:
http://www.directadmin.com/features.php?id=618

As for debugging why the reset didnt happen:
http://help.directadmin.com/item.php?id=107
and check your /var/log/cron for the action=reset&value=all bit on the 1st of the month (if your logs go that far back)

John
 
Hi guys,

I have a few VPS that just do not want to run a bandwidth reset at the first of the month.

The funny thing is that everything seems in place, with no errors:

Jul 1 04:20:01 vps49 /USR/SBIN/CRON[23895]: (root) CMD (echo 'action=reset&value=all' >> /usr/local/directadmin/data/task.queue)

Jul 1 07:41:01 vps49 /USR/SBIN/CRON[2030]: (root) CMD (/usr/local/directadmin/dataskq)
Jul 1 07:42:01 vps49 /USR/SBIN/CRON[2115]: (root) CMD (/usr/local/directadmin/dataskq)
Jul 1 07:43:01 vps49 /USR/SBIN/CRON[2172]: (root) CMD (/usr/local/directadmin/dataskq)
Jul 1 07:44:01 vps49 /USR/SBIN/CRON[2241]: (root) CMD (/usr/local/directadmin/dataskq)
Jul 1 07:45:01 vps49 /USR/SBIN/CRON[2317]: (root) CMD (/usr/local/directadmin/dataskq)
Jul 1 07:46:01 vps49 /USR/SBIN/CRON[2379]: (root) CMD (/usr/local/directadmin/dataskq)
Jul 1 07:47:01 vps49 /USR/SBIN/CRON[2445]: (root) CMD (/usr/local/directadmin/dataskq)
Jul 1 07:48:01 vps49 /USR/SBIN/CRON[2471]: (root) CMD (/usr/local/directadmin/dataskq)
Jul 1 07:49:01 vps49 /USR/SBIN/CRON[2495]: (root) CMD (/usr/local/directadmin/dataskq)
Jul 1 07:50:01 vps49 /USR/SBIN/CRON[2523]: (root) CMD (/usr/local/directadmin/dataskq)
Jul 1 07:51:01 vps49 /USR/SBIN/CRON[2554]: (root) CMD (/usr/local/directadmin/dataskq)
Jul 1 07:52:01 vps49 /USR/SBIN/CRON[2566]: (root) CMD (/usr/local/directadmin/dataskq)
Jul 1 07:53:01 vps49 /USR/SBIN/CRON[2608]: (root) CMD (/usr/local/directadmin/dataskq)
Jul 1 07:54:01 vps49 /USR/SBIN/CRON[2636]: (root) CMD (/usr/local/directadmin/dataskq)
Jul 1 07:55:01 vps49 /USR/SBIN/CRON[2668]: (root) CMD (/usr/local/directadmin/dataskq)

vpsXX:~# ps ax | grep cron
5353 ? Ss 0:00 /usr/sbin/cron

No errors in /var/log/messages

and doing it manually works perfectly.

So What the heck could be the problem :confused:
 
Last edited:
I noticed the same problem on one of my DA servers. The reset was run on July 1 but all of the bandwidth data from June is still showing in user accounts


Code:
Jul  1 04:17:01 sun crond[17073]: (root) CMD (/usr/local/directadmin/dataskq)
Jul  1 04:18:01 sun crond[17148]: (root) CMD (/usr/local/directadmin/dataskq)
Jul  1 04:19:01 sun crond[17228]: (root) CMD (/usr/local/directadmin/dataskq)
Jul  1 04:20:01 sun crond[17299]: (root) CMD (echo 'action=reset&value=all' >> /usr/local/directadmin/data/task.queue)
Jul  1 04:20:01 sun crond[17300]: (root) CMD (/usr/local/directadmin/dataskq)
Jul  1 04:21:01 sun crond[17389]: (root) CMD (/usr/local/directadmin/dataskq)
Jul  1 04:22:01 sun crond[17483]: (root) CMD (/usr/local/directadmin/dataskq)
Jul  1 04:23:01 sun crond[17566]: (root) CMD (/usr/local/directadmin/dataskq)
 
This is happening to me again. In the user list the bandwidth shown is for this month and the previous month.

I've done the tally for reset and cleanreset but it still shows the wrong bandwidth.

cron log shows that the reset was done on the 1st of the month and no errors below it.

Any more ideas on where to look at?
 
Hi everyone,

ive a bit different problem, the monthly reset has always worked fine, but, this morning i notice that all user in one server are not been resent.

Ive tryed the command line test:

echo 'action=reset&value=all' >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d

but nothing changed

Ive checked directadmin logs error and error task but look like all has been done

2009:01:01-10:57:01: Reset All has started
2009:01:01-10:57:02: Reset All has finished


Someone have other ideas?

Thanks
 
Back
Top