Skip to content

Icecast2 listener statistics script for Cacti

I found a script for cacti to monitor the number of current listeners of an icecast2 server. The script was ok, but had a problem that sources where counted as listeners and it only showed the total number of listeners.

I did some work on the script and it now has:

– show all listeners when entering “all” into the filter field
– filter for mountpoints or parts of the mountpoint name
– the script now sums the listeners of each mountpoint in the filter – positive sideeffect: if you filter for “all”, all mountpoints get summed resulting in the correct number of listeners for all your mountpoints 🙂

download: cacti_icecast2_v2.zip

1 thought on “Icecast2 listener statistics script for Cacti”

  1. Super useful post, thkans! Things have changed a bit in ubuntu (on 12.04 at least). The rule should look something like the following:SUBSYSTEM== usb , ATTRS{idProduct}== IDPRODUCT , ATTRS{idVendor}== IDVENDOR , ATTRS{serial}== SERIAL , NAME= DEVICENAME I couldn’t get this to work, but I think it’s closer at least.. hopefully someone can pick up the ball and get it working. I’ll put a bit more effort in this time allowing.Also a couple useful debugging things:sudo udevadm test /dev/bus/usb/ will output useful debugging info (and a lot of not useful info. In my case, it let me know the rules I made was invalid and why. (There’s probably a better what to do this, but it works!)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.