SHOUTCAST streaming server Monitoring

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

Moderators: Developers, Moderators

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

Post by websat »

No news yet ?
Visit my web site: http://www.websat-telecom.com
InfInIte
Posts: 23
Joined: Wed Apr 14, 2004 12:27 pm

Post by InfInIte »

Still noting? :(
d2k
Posts: 1
Joined: Sun Sep 09, 2007 8:32 pm

help

Post by d2k »

I have this error

RRDTool Says:

ERROR: parameter '#FF0000' does not represent a number in line LINE2:#FF0000:current listeners


thx for help :)
Smux
Posts: 40
Joined: Mon Sep 10, 2007 2:47 pm

Post by Smux »

i already uses 1.0 version and in my cacti log shows it:

11/26/2007 02:20:08 PM - CMDPHP: Poller[0] Host[6] DS[119] CMD: php -q /home/sigfbr/public_html/cacti/scripts/singleserver_currentlisteners.php, output: U
11/26/2007 02:20:08 PM - CMDPHP: Poller[0] Host[6] DS[119] WARNING: Result from CMD not valid. Partial Result:
11/26/2007 02:20:07 PM - CMDPHP: Poller[0] Host[6] DS[118] CMD: php -q /home/sigfbr/public_html/cacti/scripts/singleserver_currentlisteners.php, output: U
bbrother
Posts: 5
Joined: Sun Apr 15, 2007 5:03 am
Location: Holland

Post by bbrother »

My cacti (latest version) shows an invalid y-grid format.
Maybe this has something to do with the development of cacti?

I can imagine the script hasn't been updated for a long time, and now doesn't
catch up with cacti.

Bottom line:

I dont know what to do, to make the script work :)
Any1 can help a bit? Ill buy you a beer!
User avatar
vmicovic
Posts: 48
Joined: Wed Aug 15, 2007 9:57 am

Post by vmicovic »

i don`t get anything :(
just empty field ....


what to doo, to check why he don`t write me the graph?

Thank you.
Attachments
what next? :S
what next? :S
shoutcast.jpg (100.87 KiB) Viewed 12076 times
Kro
Posts: 38
Joined: Thu Mar 27, 2008 11:39 am

Post by Kro »

I think I fixed display graph error but I can't get data yet.

When I run php srcipt manually it works:

$ php scripts/shoutcast_single_server_stats.php
$ peak_listen1:1 cur_listen1:0 max_listen1:32 streamhits1:4 webhits1:44800 bandwithserv1:0

but poller get a timeout:

04/17/2008 03:00:06 AM - SPINE: Poller[0] Host[2] DS[107] WARNING: Result from SCRIPT not valid. Partial Result: ...
04/17/2008 03:00:06 AM - SPINE: Poller[0] Host[2] DS[107] SCRIPT: /usr/bin/php -q /usr/local/cacti/scripts/shoutcast_single_server_stats.php, output: U

I missed something else.
Attachments
cacti_data_template_shouctcast_single_server_statistics_template.xml
Data Template from cacti 0.8.7b
(8.2 KiB) Downloaded 512 times
cacti_graph_template_shoutcast_server_hit_statistics_template.xml
Server Hits Template from cacti 0.8.7b
(15.81 KiB) Downloaded 509 times
cacti_graph_template_shoutcast_server_listener_statistics_template.xml
Listeners Stats Template from cacti 0.8.7b
(20.15 KiB) Downloaded 620 times
EpicTech
Posts: 3
Joined: Sun Jun 08, 2008 12:34 pm

Post by EpicTech »

Has anyone fixed this problem? I get he same thing no points on the graph but the script works just fine. It would help greatly if I could get this working.
bbrotherz
Posts: 4
Joined: Thu Jun 26, 2008 10:58 am

Post by bbrotherz »

I am also desperate for this script to work.
Would be so nice!
mdcastro
Posts: 2
Joined: Thu Jul 31, 2008 10:40 pm

NO DATA, NO GRAFIC

Post by mdcastro »

Hello, I am not able to make the no data appear in version 1.0 only without image grafic. In version 1.1 no data and no image. Cacti ok, ok other graphics.

Someone has some hint of what can be? Installed on the same server where are the radios I use localhost or IP? Tested with them has not changed anything.
Attachments
not_read.JPG
not_read.JPG (24.39 KiB) Viewed 11021 times
graph_image.png
graph_image.png (27.15 KiB) Viewed 11030 times
mdcastro
Posts: 2
Joined: Thu Jul 31, 2008 10:40 pm

Re: SHOUTCAST streaming server Monitoring

Post by mdcastro »

sumsum wrote:hello

I am working on a bunch of php scripts which reads the XML data from a shoutcast server (streaming server for webradio stations).

features will be :

- Monitoring a single server
- Monitoring a bunch of servers (server farm)

monitoring will contains :
- current listeners
- stream hits
- webhits
- bandwith usage
- peak listeners
- max listeners

at least everything the shoutcast server will provide.

Is there need for that or may I alone with that ? ;) what DO YOU think ?


following a preview of two graphs I made for my own webradio station.

PLIS WAT VERSION YOU CACTI, VERSION PHP ? I HAVE PROBLEMS, IN ACTUAL NO GRAFIC DATA.
Attachments
graph_image.png
graph_image.png (27.15 KiB) Viewed 11004 times
hangmanii
Posts: 1
Joined: Fri Sep 12, 2008 11:29 pm

Shoutcast graph and script working resolved

Post by hangmanii »

Alright here you go folks. I have put alot of time into this so I hope that you all enjoy. The zip file contains all the needed stuff to get you up and running in just minutes. It is a simple php script along with the xml file to import into cacti.

Don't forget to edit the xml file and the shoutcast.php file.
Attachments
Shoutcast.zip
(25.77 KiB) Downloaded 789 times
shoutcast.jpg
shoutcast.jpg (28.65 KiB) Viewed 10655 times
dfp
Posts: 10
Joined: Mon Apr 24, 2006 7:39 am

Post by dfp »

Has anyone been able to fix the php script from the original poster. It works manually but when called from cacti results in log say "n". The original pulled more data from the xml which is handy to see graph. Thanks.
bbrother
Posts: 5
Joined: Sun Apr 15, 2007 5:03 am
Location: Holland

Post by bbrother »

I got it working with 1 stream, yeehaw!
Now, i have two streams: One in 96k and one in 192k.

I cannot get it working with two, when I add a second with different filenames and php source code it keeps husseling both up. Is there a way to fix this?
Roman777
Posts: 6
Joined: Thu Sep 10, 2009 3:10 am

Post by Roman777 »

im fighting now with this shoutcast script (1.0)

Im copy singleserver_currentlisteners.php singleserver_object.php to ....cacti/scripts and i edit both

(root# php -q /usr/share/cacti/site/scripts/singleserver_currentlisteners.php

currentlisteners:9 - i mean if this works fine in konzole)

i import both xml files and add new graph, but rrd says:
RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="shoutcast current listeners" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="LISTENERS" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/share/cacti/site/rra/localhost_sc_cur_22.rrd":sc_cur:AVERAGE \
LINE2:a#F51D30FF:"current listeners" \
GPRINT:a:LAST:"current \:%8.2lf %s" \
GPRINT:a:MAX:"max \:%8.2lf %s" \
GPRINT:a:AVERAGE:"average \:%8.2lf %s\n" \
COMMENT:" \n" \
GPRINT:a:AVERAGE:"Tue 15 Sep 11\:20\:02 CEST 2009%8.2lf %s"

RRDTool Says:

ERROR: opening '/usr/share/cacti/site/rra/localhost_sc_cur_22.rrd': No such file or directory
im trying wait 20 minutes (for roller) and nothing change

in error.log is few errors:
09/15/2009 11:25:06 AM - POLLER: Poller[0] ERROR: Network Discover subnet setting is not set!
09/15/2009 11:25:06 AM - POLLER: Poller[0] Network Discover is now running
09/15/2009 11:25:06 AM - SYSTEM STATS: Time:4.2191 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:14 RRDsProcessed:12
09/15/2009 11:25:05 AM - CMDPHP: Poller[0] Host[1] DS[22] WARNING: Result from CMD not valid. Partial Result: U
09/15/2009 11:25:03 AM - CMDPHP: Poller[0] Host[1] DS[21] WARNING: Result from CMD not valid. Partial Result: U
09/15/2009 11:20:06 AM - POLLER: Poller[0] ERROR: Network Discover subnet setting is not set!
09/15/2009 11:20:06 AM - POLLER: Poller[0] Network Discover is now running
09/15/2009 11:20:06 AM - SYSTEM STATS: Time:4.2198 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:14 RRDsProcessed:12
09/15/2009 11:20:05 AM - CMDPHP: Poller[0] Host[1] DS[22] WARNING: Result from CMD not valid. Partial Result: U
09/15/2009 11:20:03 AM - CMDPHP: Poller[0] Host[1] DS[21] WARNING: Result from CMD not valid. Partial Result: U
but new graph has ID 15 - in error log i cannoct see 15....

What is can be wrong?

Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests