On 06/06/2014 01:08 PM, uno wrote:> ... to answer myself: > > i had a fallback-mount specified, after removing it > things work as expected. sorry for the noise.In case of fallbacks you have to check properly through querying a custom XSL, JSON or the admin backend.> btw: what's the prefered way to get server and/or listener info?http://icecast.org/docs/icecast-2.4.0/icecast2_stats.html> for example, within a script (php / curl), i use > http://127.0.0.1:8000/admin/listclients?mount=/mymount > for getting info on listenersIf you need IPs and UA strings then that's the only option. Plain numbers you can get easier. Note: - as you noticed listclients instead of listclients.xsl gives you raw XML - you can get mount specific information using the mount specific credentials, you don't have to use admin credentials.> is there a better way / api?see docs link above. Cheers Thomas
"Thomas B. R?cker":> > for example, within a script (php / curl), i use > > http://127.0.0.1:8000/admin/listclients?mount=/mymount > > for getting info on listeners> - as you noticed listclients instead of listclients.xsl gives you raw XML > - you can get mount specific information using the mount specific > credentials, you don't have to use admin credentials.raw XML is fine, easy to parse with PHP's SimpleXML extension. the tip about the mount specific credentials is helpful, thanks. so i don't need to expose admin data in my scripts. 00ps: i've just crashed icecast with the above call, specifying a nonexistant mount, i.e. http://127.0.0.1:8000/admin/listclients?mount=/not_on_air icecast2[18236]: segfault at 0 ip 00007f4f6c56af32 sp 00007f4f6dc68d08 error 4 in libc-2.11.3.so[7f4f6c4ef000+159000] (linux debian6, icecast 2.4) is that a known bug or specific to my setup? thx, uno
On 06/07/2014 09:35 AM, uno wrote:> "Thomas B. R?cker": >>> for example, within a script (php / curl), i use >>> http://127.0.0.1:8000/admin/listclients?mount=/mymount >>> for getting info on listeners >> - as you noticed listclients instead of listclients.xsl gives you raw XML >> - you can get mount specific information using the mount specific >> credentials, you don't have to use admin credentials. > raw XML is fine, easy to parse with PHP's SimpleXML extension. > the tip about the mount specific credentials is helpful, thanks. > so i don't need to expose admin data in my scripts. > > 00ps: i've just crashed icecast with the above call, specifying a nonexistant > mount, i.e. http://127.0.0.1:8000/admin/listclients?mount=/not_on_air > > icecast2[18236]: segfault at 0 ip 00007f4f6c56af32 sp 00007f4f6dc68d08 error 4 in libc-2.11.3.so[7f4f6c4ef000+159000] > (linux debian6, icecast 2.4) > > is that a known bug or specific to my setup"400 - Source does not exist" Is what I get here (fresh 2.4.0 compile) A full backtrace might help. Crashes are bad, and even if it ends up being outside of Icecast we should check if there is a bug somewhere. Cheers Thomas