Project

General

Profile

Monitor tvheadend and dvb device using monit

Added by JP T about 10 years ago

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


Replies (2)

RE: Monitor tvheadend and dvb device using monit - Added by Volkan Celebi about 7 years ago

ıs that possible to install Monit and TVH another servers? ıf yes How can I use this script?

RE: Monitor tvheadend and dvb device using monit - Added by saen acro about 7 years ago

This is not a script this is configuration file for monit with monitor status of TVH service.
You can make remote service execution scripts

    (1-2/2)