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    


SHOUTCAST streaming server Monitoring
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
websat
Cacti User


Joined: 22 Jun 2005
Posts: 58

PostPosted: Fri Aug 26, 2005 3:45 pm    Post subject: Reply with quote

No news yet ?
Back to top
InfInIte



Joined: 14 Apr 2004
Posts: 23

PostPosted: Sun Jan 15, 2006 1:19 pm    Post subject: Reply with quote

Still noting?
Back to top
d2k



Joined: 09 Sep 2007
Posts: 1

PostPosted: Sun Sep 09, 2007 8:34 pm    Post subject: help Reply with quote

I have this error

RRDTool Says:

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


thx for help
Back to top
Smux



Joined: 10 Sep 2007
Posts: 40

PostPosted: Mon Nov 26, 2007 11:25 am    Post subject: Reply with quote

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



Joined: 15 Apr 2007
Posts: 5
Location: Holland

PostPosted: Tue Feb 05, 2008 9:44 am    Post subject: Reply with quote

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



Joined: 15 Aug 2007
Posts: 48

PostPosted: Sun Mar 23, 2008 7:36 am    Post subject: Reply with quote

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


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

Thank you.



shoutcast.jpg
 Description:
what next? :S
 Filesize:  100.87 KB
 Viewed:  5350 Time(s)

shoutcast.jpg


Back to top
Kro



Joined: 27 Mar 2008
Posts: 38

PostPosted: Wed Apr 16, 2008 8:01 pm    Post subject: Reply with quote

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.



cacti_graph_template_shoutcast_server_listener_statistics_template.xml
 Description:
Listeners Stats Template from cacti 0.8.7b

Download
 Filename:  cacti_graph_template_shoutcast_server_listener_statistics_template.xml
 Filesize:  20.15 KB
 Downloaded:  285 Time(s)


cacti_graph_template_shoutcast_server_hit_statistics_template.xml
 Description:
Server Hits Template from cacti 0.8.7b

Download
 Filename:  cacti_graph_template_shoutcast_server_hit_statistics_template.xml
 Filesize:  15.81 KB
 Downloaded:  217 Time(s)


cacti_data_template_shouctcast_single_server_statistics_template.xml
 Description:
Data Template from cacti 0.8.7b

Download
 Filename:  cacti_data_template_shouctcast_single_server_statistics_template.xml
 Filesize:  8.2 KB
 Downloaded:  216 Time(s)

Back to top
EpicTech



Joined: 08 Jun 2008
Posts: 3

PostPosted: Sun Jun 08, 2008 12:40 pm    Post subject: Reply with quote

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



Joined: 26 Jun 2008
Posts: 4

PostPosted: Thu Jun 26, 2008 1:30 pm    Post subject: Reply with quote

I am also desperate for this script to work.
Would be so nice!
Back to top
mdcastro



Joined: 31 Jul 2008
Posts: 2

PostPosted: Thu Jul 31, 2008 10:54 pm    Post subject: NO DATA, NO GRAFIC Reply with quote

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.



not_read.JPG
 Description:
 Filesize:  24.39 KB
 Viewed:  4295 Time(s)

not_read.JPG



graph_image.png
 Description:
 Filesize:  27.15 KB
 Viewed:  4304 Time(s)

graph_image.png


Back to top
mdcastro



Joined: 31 Jul 2008
Posts: 2

PostPosted: Fri Aug 01, 2008 2:01 pm    Post subject: Re: SHOUTCAST streaming server Monitoring Reply with quote

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.



graph_image.png
 Description:
 Filesize:  27.15 KB
 Viewed:  4278 Time(s)

graph_image.png


Back to top
hangmanii



Joined: 12 Sep 2008
Posts: 1

PostPosted: Fri Sep 12, 2008 11:34 pm    Post subject: Shoutcast graph and script working resolved Reply with quote

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.



shoutcast.jpg
 Description:
 Filesize:  28.65 KB
 Viewed:  3929 Time(s)

shoutcast.jpg



Shoutcast.zip
 Description:

Download
 Filename:  Shoutcast.zip
 Filesize:  25.77 KB
 Downloaded:  303 Time(s)

Back to top
dfp



Joined: 24 Apr 2006
Posts: 4

PostPosted: Sun Oct 12, 2008 4:08 am    Post subject: Reply with quote

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



Joined: 15 Apr 2007
Posts: 5
Location: Holland

PostPosted: Sun Nov 02, 2008 10:49 am    Post subject: Reply with quote

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?
Back to top
Roman777



Joined: 10 Sep 2009
Posts: 6

PostPosted: Tue Sep 15, 2009 4:26 am    Post subject: Reply with quote

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:
Quote:

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:
Quote:

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
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
Goto page Previous  1, 2
Page 2 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group