[mythtv-users] Anybody have any alerts set up on failed recordings?

Ginsu Squirrel ginsu.squirrel at gmail.com
Fri Mar 2 02:29:41 UTC 2012


On 03/01/2012 06:44 PM, Matt Mossholder wrote:
> On Thu, Mar 1, 2012 at 8:03 PM, Larry K <lunchtimelarry at gmail.com 
> <mailto:lunchtimelarry at gmail.com>> wrote:
>
>     On Thu, Mar 1, 2012 at 7:53 PM, Matt Emmott <memmott at gmail.com
>     <mailto:memmott at gmail.com>> wrote:
>
>         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.
>
>         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.
>
>         I'm open to any ideas. Thanks!
>
>
>     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.
>
>     #!/bin/bash
>     if [ $(tac /var/log/mythtv/mythbackend.log |grep -e "Error:"  | wc
>     -l ) = 0 ] ; then
>     exit
>     else
>     /usr/sbin/sendmail email_address at gmail.com
>     <mailto:email_address at gmail.com> < /mail_message.txt
>     fi
>     exit 0
>
>
> 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.
>
> <snipy>

With ticket 10138 (http://code.mythtv.org/trac/ticket/10138) 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%.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20120301/5f097a51/attachment.html 


More information about the mythtv-users mailing list