<div>On Thu, Mar 1, 2012 at 7:53 PM, Matt Emmott <span dir="ltr"><<a href="mailto:memmott@gmail.com">memmott@gmail.com</a>></span> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have an occasionally-recurring problem where my HDHomeRun Prime, or at least the Charter Tuning Adapter, loses its connection. When this happens, recordings that use the cablecard (pretty much anything that isn't available on QAM) fail. I came home today and had a boatload of failed recordings. When this happens I have to reboot the Tuning Adapter and HDHomeRun before I can tune those channels again.<br>
<br>I was wondering if anybody had set up any kind of alerting, preferably using email, when recordings fail. I haven't looked into it that deeply yet, perhaps using procmail and the mythbackend.log, or the system events feature that I admittedly haven't looked into very deeply.<br>
<br>I'm open to any ideas. Thanks!<br>
<br></blockquote><div><br></div><div>I just have a simple script I run with cron to scan the log and send me an email. You can grep for whatever message you care about. Not very sophisticated, but it mostly works.<div>
<br></div><div><div>#!/bin/bash</div><div>if [ $(tac /var/log/mythtv/mythbackend.log |grep -e "Error:" | wc -l ) = 0 ] ; then</div><div>exit</div><div>else</div><div>/usr/sbin/sendmail <a href="mailto:email_address@gmail.com">email_address@gmail.com</a> < /mail_message.txt</div>
<div>fi</div><div>exit 0</div></div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<br></blockquote></div><br>