icecast statistic

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

rik
Posts: 38
Joined: Mon Nov 22, 2004 5:15 am
Location: Zuerich; Switzerland
Contact:

icecast statistic

Post by rik »

hello

i have finally done work on the script which reads the icecast2 xml file, to get the current listeners connected to my icecast2 server and put it into cacti...

this script is far away from a productive plug-in but it fullfills my actual needs.

my aim to publish it here whould be to find someone how whould like to help give it some great possibilities like:

- shoutcast - icecast support
- variables to set the host - password outside of the script
- and a lot more

here is it i hope it helps somone.

;-)

bbk
Attachments
icecast0.zip
(4.59 KiB) Downloaded 3074 times
rik
Posts: 38
Joined: Mon Nov 22, 2004 5:15 am
Location: Zuerich; Switzerland
Contact:

Icecast 2 Listeners

Post by rik »

Hi,

I did a small change:

- IP, User and Password can be given for each graph
- only Icecast2 support

You must have Cacti version 0.8.6c to import the templates but they are easy to create yourself.

Have fun - I hope one day someone will use it..... maybe.

Greets
Rik
Attachments
v2.zip
Icecast2 Stats
(6.34 KiB) Downloaded 3614 times
User avatar
sumsum
Cacti User
Posts: 68
Joined: Mon Apr 26, 2004 7:18 am
Location: Switzerland
Contact:

Post by sumsum »

thanx for the script ! nice work

i will enhance this script or a similar scripts for monitoring different mountpoints.
btw i did allready a similar script for shoutcast servers. just search the forum.

cheers
tom
http://www.lounge-radio.com/
websat
Cacti User
Posts: 70
Joined: Wed Jun 22, 2005 3:00 pm
Contact:

Post by websat »

Hi
I have a small problem with your script, the graph alway show that there is 1 listener on the icecast server, but there is no one on it.
Attachments
graph_20_1.png
graph_20_1.png (21.87 KiB) Viewed 43229 times
Visit my web site: http://www.websat-telecom.com
laradji
Posts: 9
Joined: Tue May 10, 2005 9:27 am

Post by laradji »

Thank you for this script.
rik
Posts: 38
Joined: Mon Nov 22, 2004 5:15 am
Location: Zuerich; Switzerland
Contact:

not working icecast2 stats

Post by rik »

hello websat

i had the same problem as well and then the connected listeners didn't reduce, that means i had about 200 listeners ;-) (great... but not true)

i checked the stats file of my icecast server and i found out that it was the problem.

my solution was to update the icecast server to the new version and then it worked like hell :P

hope it help's you (i think it is a problem of the icecast server 2.0)

greetz
websat
Cacti User
Posts: 70
Joined: Wed Jun 22, 2005 3:00 pm
Contact:

Post by websat »

websat wrote:Hi
I have a small problem with your script, the graph alway show that there is 1 listener on the icecast server, but there is no one on it.
I reinstall cacti, and the icecast script, alway the same problem, is there someone who can make the script working well ?
thanks
Visit my web site: http://www.websat-telecom.com
rik
Posts: 38
Joined: Mon Nov 22, 2004 5:15 am
Location: Zuerich; Switzerland
Contact:

Post by rik »

What Version of Icecast do you have?

Did you check the http://www.yourserver.net:8000/admin/stats.xsl if there the number of listeners are correct?

When you have listeners on your stream, does it count them always +1, like 3 listeners = 4 in the stats?

for me i just upgraded the icecast software it self, not the cacti.
websat
Cacti User
Posts: 70
Joined: Wed Jun 22, 2005 3:00 pm
Contact:

Post by websat »

hi, thanks for your help, i have icecast 2.3.1 and the numbers of listeners is correct on the stats.xsl when i have 0 listener the stats.xsl show 0 and when i have 1 the stats.xsl show 1.
Visit my web site: http://www.websat-telecom.com
rik
Posts: 38
Joined: Mon Nov 22, 2004 5:15 am
Location: Zuerich; Switzerland
Contact:

Icecast 2.3.1

Post by rik »

finally I have a icecast 2.3.1 up and running.

just that I have a problem with ices 0.4.

after I solved ices...

I will test and modify the script to the needs of icecast 2.3.1.

.::BBK::.
www.audioasyl.net
bettocr
Posts: 1
Joined: Sat Dec 16, 2006 11:38 pm

Help!!!!

Post by bettocr »

Greetings!

Thanks for this excellent tool I believe that it is going to help to me much! I have the following problem: :oops: :oops: the truth is that not that he is what readme requests the arhivo to me to do, some of you podria to give an example me?



Thanks!
rik
Posts: 38
Joined: Mon Nov 22, 2004 5:15 am
Location: Zuerich; Switzerland
Contact:

Post by rik »

sorry....

i didn't understood your question about the readme.

do you want an example? of what?

about the posts before... i think the counter also counts a connected admin to the webinterface as an listener... that's why there is a 1.
e-Minguez
Posts: 1
Joined: Mon Jul 23, 2007 5:59 am

Post by e-Minguez »

Hi!
Could you post any "installation howto"? I've tried, but it doesn't work :(
The php script works (in cli, it prints the clients), but cacti doesn't paint the graph :S
Thanks!
mishoo
Posts: 1
Joined: Sun Oct 12, 2008 8:08 am

Post by mishoo »

e-Minguez wrote:Hi!
Could you post any "installation howto"? I've tried, but it doesn't work :(
The php script works (in cli, it prints the clients), but cacti doesn't paint the graph :S
Thanks!
import the xml files, put the php files in the /scripts directory in cacti.
what I did additionally was to append "| tail -1 " to the input string in data input methods after the command to be executed (the first line is a blank when executing php -q .... and you get something like this the following in cacti.log:

10/12/2008 03:50:03 PM - CMDPHP: Poller[0] Host[22] DS[409] WARNING: Result from CMD not valid. Partial Result:

then it worked ;-)
rik
Posts: 38
Joined: Mon Nov 22, 2004 5:15 am
Location: Zuerich; Switzerland
Contact:

Back again.

Post by rik »

Ok.

Now after 5 years i come back to this plug in... it seems for me i still have a need for this :o

I am cleaning up the code a little bit.... i just discovered that the script was getting the wrong value.

I will build in the possibility to survey the listeners regarding multiple mountpoints.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests