E-mail notices on HDPVR crap-out?
Submitted by networks1@cox.net on Thu, 07/29/2010 - 17:40
Greetings. I've got my MythTV set up with a Hauppauge HDPVR. It
periodically craps-out and needs to be restarted. Yesterday I missed some
recordings I really wanted before I discovered it had crashed. So I'm
wondering if there's any way to notify myself when this happens. I'm pretty
sure there's nothing built in to MythTV for this purpose, so I'm wondering
if I might be able to write an external app to check it periodically--or to
check with MythTV--to see if it's operational and, say, send myself an email
if it's not. Any ideas appreciated.
Thx,
Steve
- Login to post comments
E-mail notices on HDPVR crap-out?
On Thu, Jul 29, 2010 at 5:40 PM, steve wrote:
> Greetings. I’ve got my MythTV set up with a Hauppauge HDPVR. It
> periodically craps-out and needs to be restarted. Yesterday I missed some
> recordings I really wanted before I discovered it had crashed. So I’m
> wondering if there’s any way to notify myself when this happens. I’m pretty
> sure there’s nothing built in to MythTV for this purpose, so I’m wondering
> if I might be able to write an external app to check it periodically--or to
> check with MythTV--to see if it’s operational and, say, send myself an email
> if it’s not. Any ideas appreciated.
It is a super hack job and could really be cleaned up, but here is my
script, I found I have to hard boot the hdpvrs twice to get it to
work, which is what the iboot.pl script does:
#!/bin/bash
logerror=`grep 'Recorder Failed' /var/log/mythbackend.log | tail -1`
if [ "$logerror" ]
then
md5=`echo $logerror | md5sum `
md5=`expr "$md5" : '\([0-9a-z]\+\)'`
previous=`cat /var/tmp/pvr-fail-previous | grep $md5`
SUBJECT="HDPVR FAILURE"
EMAILADDRESS="[YOUR_EMAIL_ADDRESS_HERE]"
EMAILCONTENT="/tmp/emailmessage.txt"
echo "HDPVR Recorder Failed: $logerror ">$EMAILCONTENT
if [ "$md5" != "$previous" ]
then
/bin/mail -s "$SUBJECT" "$EMAILADDRESS" < $EMAILCONTENT
rmmod hdpvr lirc_zilog lirc_dev
/usr/local/bin/iboot.pl
sleep 25
modprobe hdpvr lirc_zilog
/usr/local/bin/iboot.pl
sleep 25
/etc/init.d/mythbackend restart
fi
echo $md5 > /var/tmp/pvr-fail-previous
fi
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
E-mail notices on HDPVR crap-out?
On Thu, Jul 29, 2010 at 5:40 PM, steve wrote:
> Greetings. I’ve got my MythTV set up with a Hauppauge HDPVR. It
> periodically craps-out and needs to be restarted. Yesterday I missed some
> recordings I really wanted before I discovered it had crashed. So I’m
> wondering if there’s any way to notify myself when this happens. I’m pretty
> sure there’s nothing built in to MythTV for this purpose, so I’m wondering
> if I might be able to write an external app to check it periodically--or to
> check with MythTV--to see if it’s operational and, say, send myself an email
> if it’s not. Any ideas appreciated.
It is a super hack job and could really be cleaned up, but here is my
script, I found I have to hard boot the hdpvrs twice to get it to
work, which is what the iboot.pl script does:
#!/bin/bash
logerror=`grep 'Recorder Failed' /var/log/mythbackend.log | tail -1`
if [ "$logerror" ]
then
md5=`echo $logerror | md5sum `
md5=`expr "$md5" : '\([0-9a-z]\+\)'`
previous=`cat /var/tmp/pvr-fail-previous | grep $md5`
SUBJECT="HDPVR FAILURE"
EMAILADDRESS="[YOUR_EMAIL_ADDRESS_HERE]"
EMAILCONTENT="/tmp/emailmessage.txt"
echo "HDPVR Recorder Failed: $logerror ">$EMAILCONTENT
if [ "$md5" != "$previous" ]
then
/bin/mail -s "$SUBJECT" "$EMAILADDRESS" < $EMAILCONTENT
rmmod hdpvr lirc_zilog lirc_dev
/usr/local/bin/iboot.pl
sleep 25
modprobe hdpvr lirc_zilog
/usr/local/bin/iboot.pl
sleep 25
/etc/init.d/mythbackend restart
fi
echo $md5 > /var/tmp/pvr-fail-previous
fi
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
E-mail notices on HDPVR crap-out?
On Fri, 30 Jul 2010, freedenizen wrote:
> It is a super hack job and could really be cleaned up, but here is my
> script, I found I have to hard boot the hdpvrs twice to get it to
> work, which is what the iboot.pl script does:
How are you rebooting the hd-pvr from a script? That would save a lot of
hassle... can you please share iboot.pl?
-Tree
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
E-mail notices on HDPVR crap-out?
On Fri, 30 Jul 2010, freedenizen wrote:
> It is a super hack job and could really be cleaned up, but here is my
> script, I found I have to hard boot the hdpvrs twice to get it to
> work, which is what the iboot.pl script does:
How are you rebooting the hd-pvr from a script? That would save a lot of
hassle... can you please share iboot.pl?
-Tree
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
E-mail notices on HDPVR crap-out?
On Fri, Jul 30, 2010 at 6:48 AM, Tree wrote:
> How are you rebooting the hd-pvr from a script? That would save a lot of
> hassle... can you please share iboot.pl?
I have an iboot[1] device. I can send the script later if you want
it, not in front of my machine.
[1]http://dataprobe.com/iboot-remote-reboot.html
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
E-mail notices on HDPVR crap-out?
On Fri, Jul 30, 2010 at 6:48 AM, Tree wrote:
> How are you rebooting the hd-pvr from a script? That would save a lot of
> hassle... can you please share iboot.pl?
I have an iboot[1] device. I can send the script later if you want
it, not in front of my machine.
[1]http://dataprobe.com/iboot-remote-reboot.html
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
E-mail notices on HDPVR crap-out?
On Fri, Jul 30, 2010 at 12:15 PM, freedenizen wrote:
> On Fri, Jul 30, 2010 at 6:48 AM, Tree wrote:
>> How are you rebooting the hd-pvr from a script? That would save a lot of
>> hassle... can you please share iboot.pl?
>
> I have an iboot[1] device. I can send the script later if you want
> it, not in front of my machine.
>
> [1]http://dataprobe.com/iboot-remote-reboot.html
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
$275 for 1 port seems a little steep - and I've never heard of
dataprobe.com. Those are $209 at www.kvms.com.
I've seen APC hardware in several data-centers I've worked in (or near).
$432 for 8 ports at $54 a port seems like a better deal.
http://www.kvms.com/Product/AP7920.aspx
But I like the other idea of determining what the problem is with your
HD-PVR. Can you get the manufacturer to replace it?
-JohnnyJ
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
E-mail notices on HDPVR crap-out?
On Fri, Jul 30, 2010 at 12:15 PM, freedenizen wrote:
> On Fri, Jul 30, 2010 at 6:48 AM, Tree wrote:
>> How are you rebooting the hd-pvr from a script? That would save a lot of
>> hassle... can you please share iboot.pl?
>
> I have an iboot[1] device. I can send the script later if you want
> it, not in front of my machine.
>
> [1]http://dataprobe.com/iboot-remote-reboot.html
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
$275 for 1 port seems a little steep - and I've never heard of
dataprobe.com. Those are $209 at www.kvms.com.
I've seen APC hardware in several data-centers I've worked in (or near).
$432 for 8 ports at $54 a port seems like a better deal.
http://www.kvms.com/Product/AP7920.aspx
But I like the other idea of determining what the problem is with your
HD-PVR. Can you get the manufacturer to replace it?
-JohnnyJ
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
E-mail notices on HDPVR crap-out?
On Fri, Jul 30, 2010 at 2:06 PM, Johnny Walker wrote:
> On Fri, Jul 30, 2010 at 12:15 PM, freedenizen
> wrote:
> > On Fri, Jul 30, 2010 at 6:48 AM, Tree wrote:
> >> How are you rebooting the hd-pvr from a script? That would save a lot of
> >> hassle... can you please share iboot.pl?
> >
> > I have an iboot[1] device. I can send the script later if you want
> > it, not in front of my machine.
> >
> > [1]http://dataprobe.com/iboot-remote-reboot.html
> > _______________________________________________
> > mythtv-users mailing list
> > mythtv-users@mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> >
>
> $275 for 1 port seems a little steep - and I've never heard of
> dataprobe.com. Those are $209 at www.kvms.com.
>
> I've seen APC hardware in several data-centers I've worked in (or near).
>
> $432 for 8 ports at $54 a port seems like a better deal.
>
> http://www.kvms.com/Product/AP7920.aspx
>
> But I like the other idea of determining what the problem is with your
> HD-PVR. Can you get the manufacturer to replace it?
>
> -JohnnyJ
>
I would get a more affordable WTI RPS or something similar:
http://cgi.ebay.com/WTI-REMOTE-POWER-SWITCH-RPS-10-AC-POWERED-USED-/3602...
http://cgi.ebay.com/WTI-REMOTE-POWER-BAR-RPB-115-AC-POWERED-USED-/360264...
Send it a couple of commands via serial port and it flips the switch. I've
used the RPB-115 before and it works well.
/Brian/
E-mail notices on HDPVR crap-out?
On Fri, Jul 30, 2010 at 2:06 PM, Johnny Walker wrote:
> On Fri, Jul 30, 2010 at 12:15 PM, freedenizen
> wrote:
> > On Fri, Jul 30, 2010 at 6:48 AM, Tree wrote:
> >> How are you rebooting the hd-pvr from a script? That would save a lot of
> >> hassle... can you please share iboot.pl?
> >
> > I have an iboot[1] device. I can send the script later if you want
> > it, not in front of my machine.
> >
> > [1]http://dataprobe.com/iboot-remote-reboot.html
> > _______________________________________________
> > mythtv-users mailing list
> > mythtv-users@mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> >
>
> $275 for 1 port seems a little steep - and I've never heard of
> dataprobe.com. Those are $209 at www.kvms.com.
>
> I've seen APC hardware in several data-centers I've worked in (or near).
>
> $432 for 8 ports at $54 a port seems like a better deal.
>
> http://www.kvms.com/Product/AP7920.aspx
>
> But I like the other idea of determining what the problem is with your
> HD-PVR. Can you get the manufacturer to replace it?
>
> -JohnnyJ
>
I would get a more affordable WTI RPS or something similar:
http://cgi.ebay.com/WTI-REMOTE-POWER-SWITCH-RPS-10-AC-POWERED-USED-/3602...
http://cgi.ebay.com/WTI-REMOTE-POWER-BAR-RPB-115-AC-POWERED-USED-/360264...
Send it a couple of commands via serial port and it flips the switch. I've
used the RPB-115 before and it works well.
/Brian/
E-mail notices on HDPVR crap-out?
On 07/30/2010 11:15 AM, Brian Long wrote:
>
> http://cgi.ebay.com/WTI-REMOTE-POWER-SWITCH-RPS-10-AC-POWERED-USED-/3602...
>
>
> http://cgi.ebay.com/WTI-REMOTE-POWER-BAR-RPB-115-AC-POWERED-USED-/360264...
>
>
> Send it a couple of commands via serial port and it flips the switch.
> I've used the RPB-115 before and it works well.
>
> /Brian/
> I would get a more affordable WTI RPS or something similar:
>
Nice. Better than X10, since X10 isn't exactly synonymous with
reliability, but at a similar price point.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
E-mail notices on HDPVR crap-out?
On 07/30/2010 11:15 AM, Brian Long wrote:
>
> http://cgi.ebay.com/WTI-REMOTE-POWER-SWITCH-RPS-10-AC-POWERED-USED-/3602...
>
>
> http://cgi.ebay.com/WTI-REMOTE-POWER-BAR-RPB-115-AC-POWERED-USED-/360264...
>
>
> Send it a couple of commands via serial port and it flips the switch.
> I've used the RPB-115 before and it works well.
>
> /Brian/
> I would get a more affordable WTI RPS or something similar:
>
Nice. Better than X10, since X10 isn't exactly synonymous with
reliability, but at a similar price point.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
E-mail notices on HDPVR crap-out?
On 07/30/2010 12:17 PM, Kevin Ross wrote:
> On 07/30/2010 11:15 AM, Brian Long wrote:
>>
>> http://cgi.ebay.com/WTI-REMOTE-POWER-SWITCH-RPS-10-AC-POWERED-USED-/3602...
>>
>>
>>
>> http://cgi.ebay.com/WTI-REMOTE-POWER-BAR-RPB-115-AC-POWERED-USED-/360264...
>>
>>
>>
>> Send it a couple of commands via serial port and it flips the
>> switch. I've used the RPB-115 before and it works well.
>>
>> /Brian/
>> I would get a more affordable WTI RPS or something similar:
>>
>
> Nice. Better than X10, since X10 isn't exactly synonymous with
> reliability, but at a similar price point.
Hmm, that's weird. Thunderbird seems to have rearranged the section I
quoted from the original email. At least that's my story and I'm
sticking to it! :)
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
E-mail notices on HDPVR crap-out?
On 07/30/2010 12:17 PM, Kevin Ross wrote:
> On 07/30/2010 11:15 AM, Brian Long wrote:
>>
>> http://cgi.ebay.com/WTI-REMOTE-POWER-SWITCH-RPS-10-AC-POWERED-USED-/3602...
>>
>>
>>
>> http://cgi.ebay.com/WTI-REMOTE-POWER-BAR-RPB-115-AC-POWERED-USED-/360264...
>>
>>
>>
>> Send it a couple of commands via serial port and it flips the
>> switch. I've used the RPB-115 before and it works well.
>>
>> /Brian/
>> I would get a more affordable WTI RPS or something similar:
>>
>
> Nice. Better than X10, since X10 isn't exactly synonymous with
> reliability, but at a similar price point.
Hmm, that's weird. Thunderbird seems to have rearranged the section I
quoted from the original email. At least that's my story and I'm
sticking to it! :)
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
E-mail notices on HDPVR crap-out?
On Thu, 29 Jul 2010, steve wrote:
> Greetings. I've got my MythTV set up with a Hauppauge HDPVR. It
> periodically craps-out and needs to be restarted. Yesterday I missed some
> recordings I really wanted before I discovered it had crashed. So I'm
> wondering if there's any way to notify myself when this happens. I'm pretty
> sure there's nothing built in to MythTV for this purpose, so I'm wondering
> if I might be able to write an external app to check it periodically--or to
> check with MythTV--to see if it's operational and, say, send myself an email
> if it's not. Any ideas appreciated.
I use a package called logcheck for this.
Configuring it is a bit of a pain... lots of regexes, and you generally
filter things out rather than just list what you are interested in.
You could also just have a script run from cron that greps for some
failure string in the mythbackend.log file and sends mail to you if it is
there. There are generally log messages about recordings failing.
Fortunately, my HD-PVR hasn't failed in the last week, so I don't have an
example message. (logs have rolled)
The downside of the simple grep + email is that it wouldn't reset... you'd
keep getting emails for old failures. Once you get into the territory of
tracking the file length, etc, you may be better off with a pre-built
package like logcheck. There may be similar packages that are easier to
configure for a single file...
-Tree
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
E-mail notices on HDPVR crap-out?
On Thu, 29 Jul 2010, steve wrote:
> Greetings. I've got my MythTV set up with a Hauppauge HDPVR. It
> periodically craps-out and needs to be restarted. Yesterday I missed some
> recordings I really wanted before I discovered it had crashed. So I'm
> wondering if there's any way to notify myself when this happens. I'm pretty
> sure there's nothing built in to MythTV for this purpose, so I'm wondering
> if I might be able to write an external app to check it periodically--or to
> check with MythTV--to see if it's operational and, say, send myself an email
> if it's not. Any ideas appreciated.
I use a package called logcheck for this.
Configuring it is a bit of a pain... lots of regexes, and you generally
filter things out rather than just list what you are interested in.
You could also just have a script run from cron that greps for some
failure string in the mythbackend.log file and sends mail to you if it is
there. There are generally log messages about recordings failing.
Fortunately, my HD-PVR hasn't failed in the last week, so I don't have an
example message. (logs have rolled)
The downside of the simple grep + email is that it wouldn't reset... you'd
keep getting emails for old failures. Once you get into the territory of
tracking the file length, etc, you may be better off with a pre-built
package like logcheck. There may be similar packages that are easier to
configure for a single file...
-Tree
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
E-mail notices on HDPVR crap-out?
What are the symptoms of it crapping out?
Does the device node disappear? If so cron an ls command to see if it
is there and tkae the appropriate action.
Basically if you can identify a command that responds differently
depending whether the device is working or not you can script it into
a cron script.
Also you might be able to take the steps to reset it, although a power
cycle will require some sort of external controllable power switch.
But really you should find out why it craps out. I know these things
have firmware that can be updated, but I have no idea of the most
stable version.
Are they prone to overheating? If so move it somewhere cooler.
On Fri, Jul 30, 2010 at 12:40 PM, steve wrote:
> Greetings. I’ve got my MythTV set up with a Hauppauge HDPVR. It
> periodically craps-out and needs to be restarted. Yesterday I missed some
> recordings I really wanted before I discovered it had crashed. So I’m
> wondering if there’s any way to notify myself when this happens. I’m pretty
> sure there’s nothing built in to MythTV for this purpose, so I’m wondering
> if I might be able to write an external app to check it periodically--or to
> check with MythTV--to see if it’s operational and, say, send myself an email
> if it’s not. Any ideas appreciated.
>
>
>
> Thx,
>
>
>
> Steve
>
>
>
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
E-mail notices on HDPVR crap-out?
What are the symptoms of it crapping out?
Does the device node disappear? If so cron an ls command to see if it
is there and tkae the appropriate action.
Basically if you can identify a command that responds differently
depending whether the device is working or not you can script it into
a cron script.
Also you might be able to take the steps to reset it, although a power
cycle will require some sort of external controllable power switch.
But really you should find out why it craps out. I know these things
have firmware that can be updated, but I have no idea of the most
stable version.
Are they prone to overheating? If so move it somewhere cooler.
On Fri, Jul 30, 2010 at 12:40 PM, steve wrote:
> Greetings. I’ve got my MythTV set up with a Hauppauge HDPVR. It
> periodically craps-out and needs to be restarted. Yesterday I missed some
> recordings I really wanted before I discovered it had crashed. So I’m
> wondering if there’s any way to notify myself when this happens. I’m pretty
> sure there’s nothing built in to MythTV for this purpose, so I’m wondering
> if I might be able to write an external app to check it periodically--or to
> check with MythTV--to see if it’s operational and, say, send myself an email
> if it’s not. Any ideas appreciated.
>
>
>
> Thx,
>
>
>
> Steve
>
>
>
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
E-mail notices on HDPVR crap-out?
Greetings. I've got my MythTV set up with a Hauppauge HDPVR. It
periodically craps-out and needs to be restarted. Yesterday I missed some
recordings I really wanted before I discovered it had crashed. So I'm
wondering if there's any way to notify myself when this happens. I'm pretty
sure there's nothing built in to MythTV for this purpose, so I'm wondering
if I might be able to write an external app to check it periodically--or to
check with MythTV--to see if it's operational and, say, send myself an email
if it's not. Any ideas appreciated.
Thx,
Steve