Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: abasel on August 10, 2010, 09:33:11 AM

Title: Monitoring Bandwidth use based on IP
Post by: abasel on August 10, 2010, 09:33:11 AM
My ultimate goal is to issue users with a monthly bandwidth quota (based on a username) but until I get round to trying something like Chilli Hotspot, I would simply like to log internet traffic used by a particular IP i.e. bandwidth use. What tool can I use on my SME server to achieve this?
Title: Re: Monitoring Bandwidth use based on IP
Post by: Stefano on August 10, 2010, 09:44:29 AM
if you are using squid (i.e. SMe is your httpd proxy), you can use Sarg (http://wiki.contribs.org/Sarg)
Title: Re: Monitoring Bandwidth use based on IP
Post by: abasel on August 10, 2010, 10:05:42 AM
I checked and Proxy was enabled so I  then ran

Quote
yum --enablerepo=smecontribs install smeserver-sarg

as in the Contribs but I got
Quote
No package smeserver-sarg available.

Would this be because I am using "SME Server 8.0beta5"
Title: Re: Monitoring Bandwidth use based on IP
Post by: Stefano on August 10, 2010, 10:20:21 AM
please read here (http://wiki.contribs.org/SME8.0_Contribs_QA#Setup) and retry
Title: Re: Monitoring Bandwidth use based on IP
Post by: abasel on August 10, 2010, 10:41:11 AM
Thanks... don't appear to be ready yet.

Cheers
Title: Re: Monitoring Bandwidth use based on IP
Post by: cactus on August 10, 2010, 10:42:03 AM
Would this be because I am using "SME Server 8.0beta5"
Moving to General Discussion where it is more appropriate. Please adhere to forum rules and do not post SME Server 8 related questions in SME Server 7.x related forums. Thanks in advance.
Title: Re: Monitoring Bandwidth use based on IP
Post by: stephen noble on August 12, 2010, 02:01:06 AM
Thanks... don't appear to be ready yet.

It works, just wasn't added to the list
Title: Re: Monitoring Bandwidth use based on IP
Post by: abasel on August 16, 2010, 08:29:50 PM
Hi.. I'm probably a little confused but I tried the command again and it still said not package available.
Title: Re: Monitoring Bandwidth use based on IP
Post by: CharlieBrady on August 16, 2010, 08:50:07 PM
if you are using squid (i.e. SMe is your httpd proxy), you can use Sarg (http://wiki.contribs.org/Sarg)

Note however that that will not monitor all bandwidth used - only http/https/ftp transfers which occur via squid.
Title: Re: Monitoring Bandwidth use based on IP
Post by: Stefano on August 16, 2010, 09:23:40 PM
Note however that that will not monitor all bandwidth used - only http/https/ftp transfers which occur via squid.

you're right

for the OP: you could take a look at ipfm (http://robert.cheramy.net/ipfm/)

NOTE: I've not tested ipfm, just found it with google right now