SHOUTCAST streaming server Monitoring
Moderators: Developers, Moderators
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
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
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!
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!
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.
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 513 times
-
- cacti_graph_template_shoutcast_server_hit_statistics_template.xml
- Server Hits Template from cacti 0.8.7b
- (15.81 KiB) Downloaded 510 times
-
- cacti_graph_template_shoutcast_server_listener_statistics_template.xml
- Listeners Stats Template from cacti 0.8.7b
- (20.15 KiB) Downloaded 621 times
NO DATA, NO GRAFIC
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.
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 (24.39 KiB) Viewed 11028 times
-
- graph_image.png (27.15 KiB) Viewed 11037 times
Re: SHOUTCAST streaming server Monitoring
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 (27.15 KiB) Viewed 11011 times
Shoutcast graph and script working resolved
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.
Don't forget to edit the xml file and the shoutcast.php file.
- Attachments
-
- Shoutcast.zip
- (25.77 KiB) Downloaded 789 times
-
- shoutcast.jpg (28.65 KiB) Viewed 10662 times
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:
in error.log is few errors:
What is can be wrong?
Thanks
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:
im trying wait 20 minutes (for roller) and nothing changeRRDTool 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" \
GPRINTLAST:"current \:%8.2lf %s" \
GPRINTMAX:"max \:%8.2lf %s" \
GPRINTAVERAGE:"average \:%8.2lf %s\n" \
COMMENT:" \n" \
GPRINTAVERAGE:"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
in error.log is few errors:
but new graph has ID 15 - in error log i cannoct see 15....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
What is can be wrong?
Thanks
Who is online
Users browsing this forum: No registered users and 4 guests