SNMP passthrough script for Icecast2 information.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
.gitignore
LICENSE
README.md
icecast2-listeners.sh
icecast2-snmp.py
icecast2-sources.sh
snmpd.conf.example

README.md

SNMP passthrough for Icecast2

This is a simple script to pass basic Icecast information via SNMP. The script will expose the number of listeners and the number of sources.

Requirements

  • Icecast 2 server
  • Python 3 with Requests library

Installation

  • Set up the snmpd daemon
  • Install Python3 if not already installed. Ensure the requests library is installed (usually by default)
  • Copy the icecast2-snmp.py, icecast2-listeners.sh and icecast2-sources.sh to a folder, for example /usr/local/bin/. Edit the sh scripts to point to the correct folder that icecast2-snmp.py is located!
  • Edit the snmpd passthrough configuration, look at snmpd.conf.example as an example.

Testing

Once the sensor is working correctly natively, and the setup of the snmpd is completed, you can run a SNMP client to check values are coming through. Check all SNMP values

$ snmpget -v 1 -c public 127.0.0.1 .1.3.6.1.4.1.8000.2.1