<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 03/01/2012 06:44 PM, Matt Mossholder wrote:
<blockquote
cite="mid:CAA_WKe_E6ydB04=CEUV5bLL=WJC9fC+AkbRzCTuxpTY5JnJFbg@mail.gmail.com"
type="cite">
<div class="gmail_quote">On Thu, Mar 1, 2012 at 8:03 PM, Larry K <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:lunchtimelarry@gmail.com">lunchtimelarry@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb">
<div class="h5">
<div>On Thu, Mar 1, 2012 at 7:53 PM, Matt Emmott <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:memmott@gmail.com" target="_blank">memmott@gmail.com</a>></span>
wrote:</div>
</div>
</div>
<div class="gmail_quote">
<div>
<div class="h5">
<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>
</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 moz-do-not-send="true"
href="mailto:email_address@gmail.com"
target="_blank">email_address@gmail.com</a> <
/mail_message.txt</div>
<div>fi</div>
<div>exit 0</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>My script is more HD-PVR-centric, but could probably be
adapted to deal with other situations. It is meant to run as a
"Recording Finished" System Event.</div>
<div><br>
</div>
<div><snipy></div>
</div>
</blockquote>
<br>
With ticket 10138 (<a
href="http://code.mythtv.org/trac/ticket/10138">http://code.mythtv.org/trac/ticket/10138</a>)
going in to master, you can see a recording failure event from the
System Events. You use the Recording Finished event and the status
is in %RECSTATUS%.<br>
</body>
</html>