[mythtv-users] Alerting upon failed recordings

Chris Isip cmisipster at gmail.com
Sat Sep 29 14:22:04 UTC 2007

Nagios might be able to do what you want but you need to write your own
script plugin.  Its not that hard if you know of a command line way to get
the error message.   As you dont know when the error will occur, you
probably will have to ask nagios to run the check command frequently.  You
can set levels of alert as well and time frame for alerting.  I use it for
monitoring a lot of things on my backend such as  cpu temp, diskspace on my
video dir,  my folks overseas are online, cable upstream power.
If there is no command line way to get the error message, perhaps it is
displayed in mythweb and you can use curl and some sed/grep/awk processing
to filter the error message.  Nagios can email you of the alerts.  There is
also a firefox plugin that monitors your nagios server.

I have had tuning problems in the past with my motorola cable box.  I was
using the changechannel script from the contribs.   For some reason, it
takes a longer time than myth would wait to change channels and so myth
thinks there is something wrong with the tuner and skips the recording.  I
edited the change channel script and on the last command to remote.py I
added a & to background the process.  This causes myth to think that the
channel has changed already and start recording from the composite input.  I
end up recording the channel transition also but that is a minor annoyance
compared to not being able to record at all.

On 9/29/07, Taco Mel <taco_mel at yahoo.com> wrote:
> Hello again list,
> My upgrade on Wednesday night apparently broke
> something which caused one of my two tuner cards not
> to be able to record a show on a schedule (unable to
> tune the channel message in the backend log).  This
> was even though it passed my quick post-upgrade "watch
> live TV on all tuners" test (apparently able to tune
> despite the error).  I figured this out today and have
> since fixed the problem by running mythtv-setup again.
> But I have "lost" two and a half days of planned
> recordings.
> This got me to thinking... is there any way to alert
> someone if a scheduled recording fails?  I am thinking
> that an e-mail message would be the most common,
> although a hook to a script would be the most general.
> Possibly calling a script from the backend whenever an
> error occurs, with the arguments to the script being
> the error message, and force the script to have the
> intelligence as to whether an event is worthy of
> sending an alert.  Is this implemented already?
> If not, I'll just "watch" the log file.
> Thanks in advance.
> ____________________________________________________________________________________
> Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated
> for today's economy) at Yahoo! Games.
> http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20070929/790ffaba/attachment.htm 

More information about the mythtv-users mailing list