I saw a request for this feature raised several years ago. Has this been implemented yet? If not, how are users monitoring traffic on port 8000, and even better can you split it up by mountpoint? I want to know how much traffic our icecast clients are using each month. Thank you, Shannon
Shannon S. Coen wrote:> I saw a request for this feature raised several years ago. Has this been > implemented yet? > > If not, how are users monitoring traffic on port 8000,Iptables rules for traffic accounting exist.> and even better > can you split it up by mountpoint?realtime? nope, not that I would know> I want to know how much traffic our > icecast clients are using each month. >oh? you can tell that by parsing logfiles there is a webalizer patched as a streaming version. If you are only interested in traffic as in byte count a standard webalizer or any other log analyzer will do too. Cheers Thomas
Hi Shannon, I suggest using AWSTATS on the access logs of Icecast. It isn't optimized for it yet, but gives you good usage stats and information. Faisal On Wed, 26 Jul 2006, Shannon S. Coen wrote:> I saw a request for this feature raised several years ago. Has this been > implemented yet? > > If not, how are users monitoring traffic on port 8000, and even better > can you split it up by mountpoint? I want to know how much traffic our > icecast clients are using each month. > > Thank you, > Shannon > _______________________________________________ > Icecast mailing list > Icecast@xiph.org > http://lists.xiph.org/mailman/listinfo/icecast >
Shannon S. Coen wrote:> I saw a request for this feature raised several years ago. Has this been > implemented yet? > > If not, how are users monitoring traffic on port 8000, and even better > can you split it up by mountpoint? I want to know how much traffic our > icecast clients are using each month.I've added a few stats to my branch work (kh7) to help in the assessment of bandwidth usage for server-wide/per-mountpoint. There's no graph or anything like that but those stats could be collected by something external if required. karl.
Frederic `jchome` Jaeckel
2006-Jul-30 13:30 UTC
[Icecast] Monitor traffic/bandwidth by mountpoint
Hi, On Sat, Jul 29, 2006 at 11:14:09PM -0400, Syed Faisal Akber wrote:> I suggest using AWSTATS on the access logs of Icecast. It isn't optimized > for it yet, but gives you good usage stats and information.you know of the massive vulnerabilities of awstats.pl? Be aware of using awstats. Bette use strange tools like webalizer or such things like that. Awstats.pl crashed many servers in the past. Greetings jchome -- -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCM d- s+: a-- C+++ UL+++ P+ L++ E--- W+ N o+ K w-- O+ M V- PS+++ PE+++ Y PGP+ t 5 X R tv++ b++ DI++ D+ G e h! r y+ ------END GEEK CODE BLOCK------ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.xiph.org/pipermail/icecast/attachments/20060730/3da8e967/attachment.pgp
Klauss Fumuldavijus
2006-Aug-03 11:35 UTC
[Icecast] Monitor traffic/bandwidth by mountpoint
i've found that simple arithmetics gives quite precise results (code below was written on the fly, so don't carp about the coding) <?php function tag_remove($str) { return preg_replace("@<[\/\!]*?[^<>]*?>@si","",$str); } function get_data(){ $web=fopen("http://192.168.123.123:8000/status_stat.xsl",r); $content=str_replace("\t","",str_replace("><","",stream_get_contents($web))); fclose($web); $z=tag_remove($content); $good_z=str_replace("/","\n",str_replace("\n","",str_replace(" ","",($z)))) ."\n"; $line_array = explode("\n", $good_z); foreach ($line_array as $id => $value) { if ($value) { $mount=substr($value,0,strpos($value,":")); $usr_count=substr($value,strrpos($value,":")+1); $quality=substr($value,strpos($value,":")+1,-strlen($usr_count)-1); echo "mount=$mount...traffic = ".($usr_count * $quality)."\n"; } } } get_data(); ?> you can use firewall counters as well: 00010 9720 624042 count tcp from any to me dst-port 8000 00011 1335 1709227 count tcp from me 8000 to any