| View previous topic :: View next topic |
| Author |
Message |
gimlioak
Joined: 21 Apr 2010 Posts: 13
|
Posted: Tue May 04, 2010 3:28 pm Post subject: Icecast Stats |
|
|
Hello,
I would like to get the amount of listener on each mount point of the icecast server. I could parse status.xsl or create my own xsl but it is CPU consuming and I have to get realtime data (parsing should be done using a cron method).
What I would like to use is the error.log.
I've seen the following line which is useful for me
[2010-05-04 16:52:30] INFO source/source_main listener count on /MOUNT now 154
So I have a timestamp and the mountpoint and the value. Everithing I need. With those values from all the servers we have, we could do everything to report realtime.
But I need to write something to read the logs in realtime and extracting this data to a MySQL DB.
Does anyone know a tool doing that which is CPU-friendly ?
TIA,
Gimli |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue May 04, 2010 6:37 pm Post subject: |
|
|
craft it how you want but here is a simple way
curl -X STATS -s 'http://admin:pw@host:port/' | grep listeners
karl. |
|
| Back to top |
|
 |
gimlioak
Joined: 21 Apr 2010 Posts: 13
|
Posted: Tue May 04, 2010 7:39 pm Post subject: |
|
|
Thank you very much !
So simple ... so powerful ! |
|
| Back to top |
|
 |
gimlioak
Joined: 21 Apr 2010 Posts: 13
|
Posted: Thu May 06, 2010 1:02 pm Post subject: |
|
|
Hello,
Is there any other -X VALUES than STATS that could be useful ? I've search in the doc and I didn't find any mention of this kind of call.
Thanks in advance,
Gimli |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu May 06, 2010 5:00 pm Post subject: |
|
|
it's been around a while as the stats interface but has not really been documented or defined as such, a work in progress. I am thinking of using it for the master->slave feed for streams avoiding the streamlist updating that way relays can be started almost immediately. I mentioned it as it seemed useful to your query
karl. |
|
| Back to top |
|
 |
|