[mythtv-users] Remotely monitor Backend is running
Barry Martin
barry3martin at gmail.com
Sat Oct 9 13:07:36 UTC 2021
Hi Stephen!
> It might be better to actually use the MythTV API and, for example,
> request the next recording time, as that would check that a lot more
> of mythbackend is working. It is better to use Python for that, as
> there is API support for Python. I have code to do that as part of my
> gaps program:
>
> http://www.jsw.gen.nz/mythtv/gaps
>
> which is probably a reasonable example of a real life use of that API
> call, so you could just take a copy of gaps and cut out all the extra
> code to just leave a call to Dvr/GetUpcomingList and check the results
> and then return 0 for OK or an error code from that. However, that
> requires that you know at least a bit of Python. If you would like me
> to do a cut down version like that, let me know.
“Yes, please!” to your offer of a cut-down version. As I mentioned in my
original post I piece and patch things together – not elegant but as
long as it works! Will download your ‘Gaps’ for a learning experience –
see what do understand.
I’m assuming the utility would be on my (local) computer and send
inquires to the (remote) Backend. To me makes more sense in this usage
to have Local send inquires to the Remote system: my script sends the
“You there?” (SYN) and if doesn’t get an “Yup!” (ACK) puts up an error
message window. (If the remote Backend is down/having problems it might
not be able to send out a ‘help!’ message.)
Also if posted here could be used by others – seems like it would be a
good utility to have just to monitor everything running properly rather
sitting down at night to watch a show and being greeted with the “can’t
find the Backend” screen.
Thanks!
Barry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20211009/8781e55d/attachment.htm>
More information about the mythtv-users
mailing list