<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello,<br>
<br>
On 06-12-15 13:58, Yahav Shasha wrote:<br>
</div>
<blockquote
cite="mid:CABuab=RDR=1BwdnS1bSzNMgAmyYe95HvhGNtuuFBZF65z1PaPA@mail.gmail.com"
type="cite">
<div dir="ltr">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">><span
style="font-size:12.8px">To me it sounds like a bug; surely
the fallback never needs statistics,<br>
</span><span style="font-size:12.8px">only the real steam
because this is where listeners connect to.</span></blockquote>
<div> </div>
<div><span style="font-size:12.8px">Well, the fallback mount is
still a mount-point nonetheless. you could still use it as a
"regular" mount-point even if its configured as a fallback
to another.</span></div>
</div>
</blockquote>
<br>
Hmm, you have a point there. But the point is, the *listeners*
connect to a certain mount point; I want to count them there. What's
happening behind the scenes to get the music to them (be it a
fallback stream or even a file played from disk) is irrelevant. <br>
<br>
<blockquote
cite="mid:CABuab=RDR=1BwdnS1bSzNMgAmyYe95HvhGNtuuFBZF65z1PaPA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">Now, as for the statistics,
should we be able to help without knowing what system you
use to gather your statistics and build those charts? or i
missed it?</span></div>
</div>
</blockquote>
<br>
No you didn't miss it; I'm using a homebrew XSLT to present the
information in a simple, parseable format:<br>
<br>
<xsl:stylesheet xmlns:xsl =
<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/XSL/Transform">"http://www.w3.org/1999/XSL/Transform"</a> version = "1.0" ><br>
<xsl:output omit-xml-declaration="no" method="text"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"</a>
indent="yes" encoding="UTF-8" /><br>
<xsl:template match = "/icestats"
>MountPoint,Connections,Stream Name,Current
Listeners,Description,Currently Playing,Stream URL <br>
Global,Client:<xsl:value-of select="connections" /> Source:
<xsl:value-of select="source_connections" />,,<xsl:value-of
select="listeners" />,,<br>
<xsl:for-each select="source"><br>
<xsl:value-of select="@mount" />,,<xsl:value-of
select="name" />,<xsl:value-of select="listeners"
/>,<xsl:value-of select="description" />,<xsl:value-of
select="artist" /> - <xsl:value-of select="title"
/>,<xsl:value-of select="url" /><br>
<xsl:text> </xsl:text><br>
</xsl:for-each><br>
</xsl:template><br>
</xsl:stylesheet><br>
<br>
<br>
The output is a text file that I can easily parse from a script; the
output is fed into MRTG. At this moment, the 'real' mount points are
missing from this output, even though clients are connected.<br>
<br>
<blockquote
cite="mid:CABuab=RDR=1BwdnS1bSzNMgAmyYe95HvhGNtuuFBZF65z1PaPA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><span style="font-size:12.8px">anyway, i can think of two
options:</span></div>
<div><span style="font-size:12.8px">1. gather statistics for
both mount-points.</span></div>
</div>
</blockquote>
<br>
I thought of that, but the fallback mounts are hidden so I don't get
the info at all. They are hidden simply because I don't want to show
them up to the users on the statistics page.<br>
<br>
<blockquote
cite="mid:CABuab=RDR=1BwdnS1bSzNMgAmyYe95HvhGNtuuFBZF65z1PaPA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><span style="font-size:12.8px">2. depend on the software
you use, you can write some code to determinate whether a
live source is connected and pull the stats from the
relevant mount-point accordingly.</span></div>
</div>
</blockquote>
<br>
Way too complicated. Why should I bother "switching" between mount
points when my listeners connect to a single mount point? <br>
<br>
I'm beginning to think this is a 'feature' of IceCast with
unintended consequences... <br>
<br>
Thanks,<br>
<br>
Jeroen<br>
<br>
<pre class="moz-signature" cols="72">--
Bankai Software
Jeroen van Oosten
Telefoon: 010-4134567
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:jvoosten@bankai.nl">jvoosten@bankai.nl</a>
KvK inschrijving: 24455492
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." --Red Adair</pre>
</body>
</html>