Page 1 of 2

Bubba Bandwidth Monitor

Posted: 03 Mar 2009, 16:39
by scoobynz
Hello, this is a repost in the correct area.

I have given my friends access to my server to download files etc.

Although I have “unlimitedâ€

Posted: 03 Mar 2009, 18:33
by scoobynz
OK – I am by no means an expert but I am a tryer. Tryers always get stuck!!

I have tried to install awstats as it seems it will do the job described in the thread above. I have followed this howto http://www.debuntu.org/2006/04/21/33-ho ... bianubuntu

However when I have got to the stage of restarting my apache2 server I get the following message;

bubba:/etc# /etc/init.d/apache2 reload

Syntax error on line 1 of /etc/apache2/awstats.conf:

Invalid command 'Alias', perhaps misspelled or defined by a module not included in the server configuration

failed!


To me that seems to suggest that I need to install something else so that the server understands the term / command 'Alias'

Does anyone with any better idea than me on Apache2 know what my next move should be?

Many thanks in advance.

S

Posted: 04 Mar 2009, 02:28
by Ravagon
If you post the /etc/apache2/awstats.conf here maybe someone can help you.

Posted: 04 Mar 2009, 03:21
by scoobynz
Many thanks for the suggestion.

My awstats.conf reads as;
Alias /awstatsclasses "/usr/share/awstats/lib/"
Alias /awstats-icon/ "/usr/share/awstats/icon/"
Alias /awstatscss "/usr/share/doc/awstats/examples/css"
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
ScriptAlias /awstats/ /usr/lib/cgi-bin/
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
I have also posted my apache2.conf as I think this may have something to do with the problem;
Include /etc/apache2/awstats.conf

I did find some other information by googling that suggested I was missing the following from the apache2.conf;
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
but adding that 2 x lines to the apache2.conf leaves me with the error message;
Syntax error on line 4 of /etc/apache2/mods-enabled/fastcgi.conf:
FastCgiIpcDir /var/lib/apache2/fastcgi: access for server (uid 1002, gid 100) failed: write not allowed
failed!
So I removed the lines from the file.

Any help appreciated.

S

Posted: 04 Mar 2009, 03:27
by whilbone
Have you had a look at mrtg?

I had it set up for a while on my bubba (until i decided to reinstall it) and it produced very nice graphs.

Posted: 04 Mar 2009, 04:06
by scoobynz
Thanks for the reply! Will investigate mtrg a bit more, although it looks like this has to be installed by compiling rather than through apt-get, which I am sure will open up another can of worms :D

Does mtrg work through a web based gui? It looks similar but not a user friendly as awstats?

Whilst I investigate further any more info on my AWstats problems appreciuated.

Posted: 04 Mar 2009, 04:24
by whilbone
It does work from the web and I didnt compile anything that I remeber... however, I'm not sure it provides you with a total transferred bytes that you are looking for.

Still, it's a nice feature to see graphs for your bandwidth usage. :-)

There's a demo page at http://oss.oetiker.ch/mrtg/

Posted: 07 Mar 2009, 01:30
by novis
vnStat is a nice console network traffic monitor.

There seems to be a PHP frontend for it too.

Posted: 13 Mar 2009, 04:40
by scoobynz
Thank-you - vnstats was exactly what I was looking for and v.easy to install.

Many thanks.

Posted: 13 Mar 2009, 16:04
by GNOE Inc..
Maybe you can take a look at Cacti

Console:

Code: Select all

aptitude search cacti

Monitor for available bandwidth

Posted: 15 Mar 2009, 20:09
by scott-2
Is there a tool out there for monitoring the bandwidth available from my ISP? I'd like my Bubba to report on available bandwidth once an hour.

I'm thinking of something like the speed tests offered for free by DSLreports.com. (http://www.dslreports.com/speedtest). I'd like to find a way to run a test like this on the Bubba every hour.

Re: Bubba Bandwidth Monitor

Posted: 12 Jul 2009, 15:16
by mike_nl
Hello,

i will say thank you for the tip here. I have found one more
info tool. Named vpsinfo http://www.labradordata.ca/home/13.

Take alook and give it a try.

Re: Bubba Bandwidth Monitor

Posted: 13 Jul 2009, 12:21
by pcrene
kan anyone make a how2do please

installed using apt-get install vnstat.
downloaded the php frontend but it does not seem to work.

Rene

Re: Bubba Bandwidth Monitor

Posted: 13 Jul 2009, 16:55
by asparak
Just working on configuring the frontend at the moment and its pretty easy. I have wget installed, but you can install that easily if you don't have it

Code: Select all

apt-get install wget
1. Firstly install vnstat

Code: Select all

apt-get install vnstat
2. Download and put the vnstat frontend on your webserver.

Code: Select all

cd /home/web
wget http://www.sqweek.com/sqweek/files/vnstat_php_frontend-1.4.1.tar.gz
tar xvfz vnstat_php_frontend-1.4.1.tar.gz
3. The next steps aren't essential, but I do it anyway, just for neatness

Code: Select all

mv vnstat_php_frontend-1.4.1 vnstat
chown -R www-data:users vnstat

4. Run vnstat to set up your databases for the interface(s) you want to monitor

Code: Select all

vnstat -u -i eth0
vnstat -u -i eth1
then it starts to record your data.
5. cd into the vnstat frontend directory
6. edit the config.php file to set your interfaces the right way round and add /usr/bin/vnstat to the $vnstat_bin protocol and you should be good to go

7. Now you may want to download and install the daemon script from the vnstat homepage if you want to run vnstat on reboot, or you can just start it manually. http://humdi.net/vnstat/init.d/debian/vnstat You can use update-rc.d to set it up as well. This is the debian equivalent of chkconfig

Code: Select all

cd /etc/init.d
wget http://humdi.net/vnstat/init.d/debian/vnstat
chmod a+x vnstat
update-rc.d -f vnstat defaults
8. Up to you if you want to password control the directory using .htaccess file. I do

Re: Bubba Bandwidth Monitor

Posted: 20 Sep 2011, 15:56
by mike_nl
It woul'd be nice when i can get vnstat on my bubba. Possible i can't read ;-).
On my try with apt-get install vnstat i get:
E: Couldn't find package vnstat

Have i overseen something since the last B2 update?
Possible someone can help out.

The wiki is now no longer up to date in this case.
Thanks for help.