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/zabbix
and give executions right onicestats.sh
to zabbix user Example:chown zabbix:zabbix icestats.sh; chmod u+x icestats.sh
-
Change configuration in
icestats.conf.example
to suit your needs and rename the file toicestats.conf
-
Add UserParameters from
userparameters.txt
to 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.clients
icecast.global.client_connections
icecast.global.sources
icecast.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