[mythtv-users] Detecting crashes

Patrick Van Humbeeck mythtv at b34tz.net
Wed Nov 24 06:30:17 UTC 2004


Hello,

I guess an easy test would be to look for the http status page from
mythbackend on port 6544 - I suppose this would be broken when your
backend hangs.

something like this *should* work - give it a try :)

if $(lynx --dump http://localhost:6544 | grep -q Schedule);
then echo "$(date): OK" >> $log
else [ alert method here ]
fi

if this is not enough I guess you can add various obvious tests like check
if there are any recent files in your store dir, check for the timestamp
on mythbackend.log etc ..

patrick

> Does anyone know how to detect crashes and hangs of either the frontend
> or backend?  I have been having to baby it every day these days, and I'd
> love a cron job to test if all is well or not.  I can't grep ps aux to
> see if the process is there, because it usually is there, just locked up.
>
> Has anyone else done this already?
>
> Thanks.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>


More information about the mythtv-users mailing list