[Icecast] Monit and Icecast2
Tim Baker
tim at tjbaker.co.uk
Mon Jan 6 20:30:52 UTC 2014
Trying to monitor Icecast2 with Monit - but it won't create a PID file? I've checked the settings and tried various entries for pidfile path (/usr/share/, /usr/local/var/run and /var/run) in the XML, restarted etc but no pidfile appears?
Also found this monit script - is it correct?
check process icecast2 with pidfile /var/run/icecast2/icecast.pid
start program = "/etc/init.d/icecast2 start"
stop program = "/etc/init.d/icecast2 stop"
if failed port 8000 protocol HTTP
request /
with timeout 60 seconds
then start
if failed port 8000 protocol HTTP
request /
with timeout 60 seconds
then alert
More information about the Icecast
mailing list