View Full Version : Reset Bandwidth not working?
nobaloney
09-07-2010, 10:37 AM
Today I noticed on one of my severs the bandwidth tally wasn't properly resetting.
I found and executed these two commands:
# echo "action=cleanreset&value=all" >> /usr/local/directadmin/data/task.queue
and
# echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue
and nothing has changed.
Do I need to wait until tomorrow? Or am I missing something?
Thanks.
Jeff
smtalk
09-07-2010, 12:47 PM
Check /var/log/cron to see if the command got executed and crond is running. You can also try processing task.queue manually:
echo "action=cleanreset&value=all" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d
daveyw
09-08-2010, 07:06 AM
Check /var/log/cron to see if the command got executed and crond is running. You can also try processing task.queue manually:
echo "action=cleanreset&value=all" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d
Before running the last command of smtalk's post remove the already executed command in the task.queue file.. otherwise it will run more then once.
nobaloney
09-08-2010, 12:05 PM
Thanks to both of you, Martynas and daveyw.
I always check the contents of my task.queue when troubleshooting, so I know whether it's been run or not.
I'm no longer sure the problem is real; perhaps just perceived: one client has had greater and greater use every month, and I presumed it was a problem with the usage.
However I'm just checking the client today for the daily bandwidth breakdown and I get at: https://host.example.net:2222/CMD_BANDWIDTH_BREAKDOWN?user=xxxx
Date Apache Email Ftp DAdmin Other Total Sent Emails
2010 09 01 964.6 MB 3.62 KB 0.00 KB 0.00 KB 0.00 KB 964.6 MB 4
2010 09 02 322.9 MB 0.00 KB 0.00 KB 0.00 KB 0.00 KB 322.9 MB 0
2010 09 03 380.2 MB 0.00 KB 0.00 KB 0.00 KB 0.00 KB 380.2 MB 0
2010 09 04 358.9 MB 0.00 KB 0.00 KB 0.00 KB 0.00 KB 358.9 MB 0
2010 09 05 220.5 MB 0.00 KB 0.00 KB 0.00 KB 0.00 KB 220.5 MB 0
2010 09 06 464.4 MB 0.00 KB 0.00 KB 0.00 KB 0.00 KB 464.4 MB 0
2010 09 07 223.7 MB 0.00 KB 0.00 KB 0.00 KB 0.00 KB 223.7 MB 0
total 2.87 GB 3.62 KB 0.00 KB 0.00 KB 0.00 KB 2.87 GB 4
It looks as if my client is really using that much transit.
I apologize for any inconvenience I've caused either of you.
What I need to know now, is following those instructions from John, did the second command clear my monthly summaries; it looks as if they're now lower than the total of these daily numbers.
Thanks.
Jeff
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.