Reset Bandwidth not working?

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
24,980
Location
California
Today I noticed on one of my severs the bandwidth tally wasn't properly resetting.

I found and executed these two commands:

Code:
# echo "action=cleanreset&value=all" >> /usr/local/directadmin/data/task.queue
and
Code:
# 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
 
Check /var/log/cron to see if the command got executed and crond is running. You can also try processing task.queue manually:
Code:
echo "action=cleanreset&value=all" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d
 
Check /var/log/cron to see if the command got executed and crond is running. You can also try processing task.queue manually:
Code:
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.
 
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
Code:
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
 
Back
Top