Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


icecast statistic

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
rik



Joined: 22 Nov 2004
Posts: 36
Location: Zuerich; Switzerland

PostPosted: Mon May 23, 2005 5:13 pm    Post subject: icecast statistic Reply with quote

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



icecast0.zip
 Description:

Download
 Filename:  icecast0.zip
 Filesize:  4.59 KB
 Downloaded:  929 Time(s)

Back to top
rik



Joined: 22 Nov 2004
Posts: 36
Location: Zuerich; Switzerland

PostPosted: Sat Oct 15, 2005 5:16 pm    Post subject: Icecast 2 Listeners Reply with quote

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



v2.zip
 Description:
Icecast2 Stats

Download
 Filename:  v2.zip
 Filesize:  6.34 KB
 Downloaded:  1299 Time(s)

Back to top
sumsum
Cacti User


Joined: 26 Apr 2004
Posts: 57
Location: Switzerland

PostPosted: Sun Oct 16, 2005 1:00 pm    Post subject: Reply with quote

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
Back to top
websat
Cacti User


Joined: 22 Jun 2005
Posts: 58

PostPosted: Thu Oct 27, 2005 3:22 am    Post subject: Reply with quote

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.



graph_20_1.png
 Description:
 Filesize:  21.87 KB
 Viewed:  11427 Time(s)

graph_20_1.png


Back to top
laradji



Joined: 10 May 2005
Posts: 9

PostPosted: Sat Oct 29, 2005 4:47 am    Post subject: Reply with quote

Thank you for this script.
Back to top
rik



Joined: 22 Nov 2004
Posts: 36
Location: Zuerich; Switzerland

PostPosted: Tue Nov 08, 2005 3:03 am    Post subject: not working icecast2 stats Reply with quote

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

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

greetz
Back to top
websat
Cacti User


Joined: 22 Jun 2005
Posts: 58

PostPosted: Tue Jun 27, 2006 4:04 am    Post subject: Reply with quote

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
Back to top
rik



Joined: 22 Nov 2004
Posts: 36
Location: Zuerich; Switzerland

PostPosted: Tue Jun 27, 2006 5:09 am    Post subject: Reply with quote

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.
Back to top
websat
Cacti User


Joined: 22 Jun 2005
Posts: 58

PostPosted: Tue Jun 27, 2006 1:05 pm    Post subject: Reply with quote

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.
Back to top
rik



Joined: 22 Nov 2004
Posts: 36
Location: Zuerich; Switzerland

PostPosted: Tue Jul 25, 2006 9:16 am    Post subject: Icecast 2.3.1 Reply with quote

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
Back to top
bettocr



Joined: 16 Dec 2006
Posts: 1

PostPosted: Sat Dec 16, 2006 11:50 pm    Post subject: Help!!!! Reply with quote

Greetings!

Thanks for this excellent tool I believe that it is going to help to me much! I have the following problem: 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!
Back to top
rik



Joined: 22 Nov 2004
Posts: 36
Location: Zuerich; Switzerland

PostPosted: Sun Dec 17, 2006 9:26 am    Post subject: Reply with quote

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.
Back to top
e-Minguez



Joined: 23 Jul 2007
Posts: 1

PostPosted: Mon Jul 23, 2007 6:01 am    Post subject: Reply with quote

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!
Back to top
mishoo



Joined: 12 Oct 2008
Posts: 1

PostPosted: Sun Oct 12, 2008 8:11 am    Post subject: Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group