Atjeu
11-12-2002, 02:38 PM
There is a new bandwidth monitoring tool that you can install on your server. Its called bwbar and it will tell you your usage in realtime along with keeping track of the amount of Bytes that enter and leave your server. You can get it here.
http://www.atjeu.com/bwbar-2.3.tar.gz
Just do this:
gunzip bwbar-2.3.tar.gz
tar -xf bwbar-2.3.tar
cd bwbar-2.3
edit the bwbar_config and set the directories and options the way you want them.
then do this
chmod +x ./bwbar
chmod +x ./normal_restart
chmod +x ./total_restart
./total_restart
and thats it, it will be up and running in whatever directory you told it to post to in the config file.
ADDITIONAL INFORMATION
When to run ./total_restart instead of ./normal_restart:
Running ./total_restart instead ./normal_restart will reset the "Total bandwidth
usage is" line to 0 and reset the "Bandwidth logging was started at" line to the
current time. I like to keep track of my bandwidth on a monthly basis, so I run
./total_restart once per month. You can do this automatically using cron by
entering the following command:
crontab -e
Then add the following line:
0 0 1 * * /PATH_TO/bwbar/total_restart > /dev/null
(Change "PATH_TO" to the path to your bwbar/ directory, of course.)
This will run total_restart automatically on the first minute of the first day
of each month.
---
http://www.atjeu.com/bwbar-2.3.tar.gz
Just do this:
gunzip bwbar-2.3.tar.gz
tar -xf bwbar-2.3.tar
cd bwbar-2.3
edit the bwbar_config and set the directories and options the way you want them.
then do this
chmod +x ./bwbar
chmod +x ./normal_restart
chmod +x ./total_restart
./total_restart
and thats it, it will be up and running in whatever directory you told it to post to in the config file.
ADDITIONAL INFORMATION
When to run ./total_restart instead of ./normal_restart:
Running ./total_restart instead ./normal_restart will reset the "Total bandwidth
usage is" line to 0 and reset the "Bandwidth logging was started at" line to the
current time. I like to keep track of my bandwidth on a monthly basis, so I run
./total_restart once per month. You can do this automatically using cron by
entering the following command:
crontab -e
Then add the following line:
0 0 1 * * /PATH_TO/bwbar/total_restart > /dev/null
(Change "PATH_TO" to the path to your bwbar/ directory, of course.)
This will run total_restart automatically on the first minute of the first day
of each month.
---