This Repo contains some scripts for monitoring an icecast server in zabbix.
This Repo has been downloaded from https://github.com/hairmare/zabbix-icecast
You will need to satisfy the following deps on the monitored System:
- xsltproc from libxslt
- wget
For Ubuntu do the following:
sudo apt-get install xsltproc wget
-
Copy the scripts dir to
/usr/local/scripts/zabbixand give executions right onicestats.shto zabbix user Example:chown zabbix:zabbix icestats.sh; chmod u+x icestats.sh -
Change configuration in
icestats.conf.exampleto suit your needs and rename the file toicestats.conf -
Add UserParameters from
userparameters.txtto yourzabbix_agentd.conf -
Restart zabbix agent
You may import Template_App_Icecast.xml as a starting point. The Template contains monitoring for the streams this was written for.
You can use the following keys for monitoring.
icecast.global.clientsicecast.global.client_connectionsicecast.global.sourcesicecast.source.listeners[*]icecast.source.peak_listeners[*]icecast.source.slow_listeners[*]
In the icecast.source.* items the first parameter ($1) is the name of an icecast mountpoint