| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Wed Jan 03, 2007 11:06 am Post subject: cumulative listeners counter per mountpoint |
|
|
Hi,
I need to count how many listeners have connected to any of my publishing points. I could do it through authentication (and some sql) (<option name="listener_add" value="http://myauthserver.com/listener_joined.php"/>). But I dont want to present the listener with username/pass dialog.
Is there a way do achieve everything that url auth does, but without actually asking for username/pass?
Or is there some other way?
akaver
Last edited by Anonymous on Thu Jan 04, 2007 6:17 am; edited 2 times in total |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Jan 03, 2007 2:04 pm Post subject: |
|
|
just create a php-script like this
| Code: |
<?php
header ("icecast-auth-user: 1");
// some code for analytics
?>
|
|
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Jan 03, 2007 2:08 pm Post subject: |
|
|
yes, i did exactly like that. what it does, it asks first for username:password and then passess them on via post to your script. So what now happens is, that every username:pass combo is authenticated. But i want to get through without ever presenting the username:pass dialog to user.
akaver |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Jan 03, 2007 3:27 pm Post subject: |
|
|
| which client do you use? |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Jan 03, 2007 5:05 pm Post subject: |
|
|
Use the search function of this board with 'stats' as keyword and be amazed  |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Jan 03, 2007 5:26 pm Post subject: |
|
|
Ofcourse I searched first.
and client I tested with is latest winamp. The user:pass dialog pops up before any request to auth script is done.
what i need is to count how many listeners have started the stream during the day - need the info for authors rights etc. I'm generating other graphs fine - current listeners, bandwith (using mrtg).
Basicaly i need what we have for server:
--
client-connections
Client connections are basically anything that is not a source connection. These include listeners (not concurrent, but cumulative), any admin function accesses, and any static content (file serving) accesses.
--
but for mountpoint.
akaver |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Sat Jan 06, 2007 9:22 pm Post subject: |
|
|
| perhaps this posting will help. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Sat Jan 06, 2007 9:39 pm Post subject: |
|
|
no it doesnt. i know fairly fell how to code and parse...
but there isnt a thing to parse. current statistcs dont include cumulative (meaning that for example /energy.ogg had yesterday 20 000 listeners, max simultaneous was 1500) listeners per mountpoint. We have cumulative for server, but i need it for every mountpoint. If i cant get it somehow, i can't make reports to authors org, which makes icecast unusable for me... |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Jan 07, 2007 2:44 am Post subject: |
|
|
A per-mountpoint listener_connections stat is in my branch currently and in my queue for merging into trunk.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed Oct 17, 2007 6:55 pm Post subject: Any update on this ? |
|
|
Any update on this ?
i also need the cumulative, peak, and all stats for EACH mount point.
Thanks |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Thu Oct 25, 2007 3:12 pm Post subject: |
|
|
It should be a solution behind a bash script.
Indeed, you have to scan your /etc/icecast/icecast.log to find the maximum number of connected clients in a range of date and for each mountpoint you have.
Something like this script should be a good start : http://icecast.imux.net/viewtopic.php?t=3933
but you have to modify the fact that you have to specify a range of date and have to scan the entire log file instead of the tail -n100 (last 100 lines)
Tell me for more explaination or more help. (don't want to work for nothing, just to help you better ) |
|
| Back to top |
|
 |
|