Hi,
I would like to monitor my tvh instance because my dvb driver is rather instable.
My current
http://mmonit.com/monit config is:
# file /etc/monit/conf.d/tvheadend
check process tvheadend with pidfile /var/run/tvheadend.pid
group hts
start program = "/etc/init.d/tvheadend start"
stop program = "/etc/init.d/tvheadend stop"
if failed host localhost port 9981 then restart
if failed host localhost port 9982 then restart
if 5 restarts within 5 cycles then timeout
depends on dvb-adapter
# file /etc/monit/conf.d/dvb-adapter
check directory dvb-adapter path /dev/dvb/adapter0
This is ok, but I fear it won't find "hardware crashed" scenarios.
Do you have any idea how I could monitor the hardware more closely? ie monitor kernel modules or if tvheadend has got a reciever available.
thanks,
Jan