Bubba Bandwidth Monitor

Got problems with your B2 or B3? Share and get helped!
scoobynz
Posts: 52
Joined: 10 Nov 2008, 17:11

Bubba Bandwidth Monitor

Post by scoobynz » 03 Mar 2009, 16:39

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â€

scoobynz
Posts: 52
Joined: 10 Nov 2008, 17:11

Post by scoobynz » 03 Mar 2009, 18:33

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

Ravagon
Posts: 13
Joined: 07 Feb 2009, 06:17

Post by Ravagon » 04 Mar 2009, 02:28

If you post the /etc/apache2/awstats.conf here maybe someone can help you.

scoobynz
Posts: 52
Joined: 10 Nov 2008, 17:11

Post by scoobynz » 04 Mar 2009, 03:21

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

whilbone
Posts: 25
Joined: 22 Oct 2008, 03:09

Post by whilbone » 04 Mar 2009, 03:27

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.

scoobynz
Posts: 52
Joined: 10 Nov 2008, 17:11

Post by scoobynz » 04 Mar 2009, 04:06

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.

whilbone
Posts: 25
Joined: 22 Oct 2008, 03:09

Post by whilbone » 04 Mar 2009, 04:24

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/

novis
Posts: 30
Joined: 12 Sep 2008, 09:36
Location: Suomi Finland

Post by novis » 07 Mar 2009, 01:30

vnStat is a nice console network traffic monitor.

There seems to be a PHP frontend for it too.

scoobynz
Posts: 52
Joined: 10 Nov 2008, 17:11

Post by scoobynz » 13 Mar 2009, 04:40

Thank-you - vnstats was exactly what I was looking for and v.easy to install.

Many thanks.

GNOE Inc..

Post by GNOE Inc.. » 13 Mar 2009, 16:04

Maybe you can take a look at Cacti

Console:

Code: Select all

aptitude search cacti

scott-2
Posts: 31
Joined: 05 Oct 2008, 21:25

Monitor for available bandwidth

Post by scott-2 » 15 Mar 2009, 20:09

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.

mike_nl
Posts: 49
Joined: 03 Jul 2009, 13:56

Re: Bubba Bandwidth Monitor

Post by mike_nl » 12 Jul 2009, 15:16

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.

pcrene
Posts: 305
Joined: 17 May 2008, 15:49

Re: Bubba Bandwidth Monitor

Post by pcrene » 13 Jul 2009, 12:21

kan anyone make a how2do please

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

Rene
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com

asparak
Posts: 173
Joined: 08 Jun 2009, 07:38

Re: Bubba Bandwidth Monitor

Post by asparak » 13 Jul 2009, 16:55

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

mike_nl
Posts: 49
Joined: 03 Jul 2009, 13:56

Re: Bubba Bandwidth Monitor

Post by mike_nl » 20 Sep 2011, 15:56

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.

Post Reply