Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Icecast Stats

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
gimlioak



Joined: 21 Apr 2010
Posts: 13

PostPosted: Tue May 04, 2010 3:28 pm    Post subject: Icecast Stats Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue May 04, 2010 6:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
gimlioak



Joined: 21 Apr 2010
Posts: 13

PostPosted: Tue May 04, 2010 7:39 pm    Post subject: Reply with quote

Thank you very much !

So simple ... so powerful !
Back to top
View user's profile Send private message AIM Address MSN Messenger
gimlioak



Joined: 21 Apr 2010
Posts: 13

PostPosted: Thu May 06, 2010 1:02 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu May 06, 2010 5:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber