[mythtv-users] Monit and mythbuntu

Kevin Robbins robbinsck1 at gmail.com
Tue Oct 28 20:32:23 UTC 2008


On Mon, Oct 27, 2008 at 9:28 PM, John H <arizonamythtv at gmail.com> wrote:
> I'm using monit under Fedora but it should be similar. First of all,
> did you add this line to the /etc/monit.conf file near the bottom
> under includes.
>
> include /etc/.monitrc  <- you'll want to change this to the path of your file.
>
> After monit loads then it's use the setup in the .monitrc file.
>
> Also, if you want to run the program like the frontend under a
> username. I added "group mythtv" without the quotes and you'll want to
> replace mythtv with your username. I added this right before the start
> program command. One other thing, the monitrc file for myth that you
> can find on the web monitors the pid and the http port. I took the
> http port monitor out because when mythfilldatabase runs monit thinks
> the backend has stopped. I don't think it'll hurt anything but if you
> have email notification on you'll get a bunch of emails. I'm just
> taking my chances on the pid only but it hasn't failed but then again
> my backend doesn't really crash.
> _______________________________________________
>

Mine doesnt crash very often either...only when I'm away and can't fix
it for a day or so .=D

I do have monit installed and working correctly I'm quite certain. It
works great for startng stopping mysql and apache and works as its
suppossed to, If i ssh in and kill a mysql process it sends me an
email notifying me of this and restart the process.

It does the same for mysql and all the other processes I have it
monitoring ACCEPT mythbackend and I think it may be something to do
with permissions, but Im not certain.

Heres the mythbacked portion of monitrc...


check process mythbackend with pidfile /var/run/mythtv/mythbackend.pid
 group mythtv

 start program = "/etc/init.d/mythtv-backend restart"
        as uid mythtv and gid mythtv
 stop program  = "/etc/init.d/mythtv-backend stop"
        as uid mythtv and gid mythtv
 if failed port 6544 then restart
 depends on mysql


In the web admin screen for monit it tells me that mythbackend "DOES NOT EXIST"
when in fact the process does exist at /var/run/mythtv/mythbackend.pid


Mythbackend IS running....I'm using it watching, recording all that
jazz, BUT...here's my broken record monit log.

[EDT Oct 28 15:53:45] error    : 'mythbackend' process is not running
[EDT Oct 28 15:53:45] info     : 'mythbackend' trying to restart
[EDT Oct 28 15:53:45] info     : 'mythbackend' start: /etc/init.d/mythtv-backend
[EDT Oct 28 15:56:45] error    : 'mythbackend' process is not running
[EDT Oct 28 15:56:45] info     : 'mythbackend' trying to restart
[EDT Oct 28 15:56:45] info     : 'mythbackend' start: /etc/init.d/mythtv-backend
[EDT Oct 28 15:59:45] error    : 'mythbackend' process is not running
[EDT Oct 28 15:59:45] info     : 'mythbackend' trying to restart
[EDT Oct 28 15:59:45] info     : 'mythbackend' start: /etc/init.d/mythtv-backend
[EDT Oct 28 16:02:45] error    : 'mythbackend' process is not running
[EDT Oct 28 16:02:45] info     : 'mythbackend' trying to restart
[EDT Oct 28 16:02:45] info     : 'mythbackend' start: /etc/init.d/mythtv-backend
[EDT Oct 28 16:05:45] error    : 'mythbackend' process is not running
[EDT Oct 28 16:05:45] info     : 'mythbackend' trying to restart
[EDT Oct 28 16:05:45] info     : 'mythbackend' start: /etc/init.d/mythtv-backend
[EDT Oct 28 16:08:45] error    : 'mythbackend' process is not running
[EDT Oct 28 16:08:45] info     : 'mythbackend' trying to restart
[EDT Oct 28 16:08:45] info     : 'mythbackend' start: /etc/init.d/mythtv-backend
[EDT Oct 28 16:11:45] error    : 'mythbackend' process is not running
[EDT Oct 28 16:11:45] info     : 'mythbackend' trying to restart
[EDT Oct 28 16:11:45] info     : 'mythbackend' start: /etc/init.d/mythtv-backend
[EDT Oct 28 16:14:45] error    : 'mythbackend' process is not running
[EDT Oct 28 16:14:45] info     : 'mythbackend' trying to restart
[EDT Oct 28 16:14:45] info     : 'mythbackend' start: /etc/init.d/mythtv-backend
[EDT Oct 28 16:17:45] error    : 'mythbackend' process is not running
[EDT Oct 28 16:17:45] info     : 'mythbackend' trying to restart
[EDT Oct 28 16:17:45] info     : 'mythbackend' start: /etc/init.d/mythtv-backend
[EDT Oct 28 16:20:45] error    : 'mythbackend' process is not running
[EDT Oct 28 16:20:45] info     : 'mythbackend' trying to restart
[EDT Oct 28 16:20:45] info     : 'mythbackend' start: /etc/init.d/mythtv-backend
[EDT Oct 28 16:23:45] error    : 'mythbackend' process is not running
[EDT Oct 28 16:23:45] info     : 'mythbackend' trying to restart
[EDT Oct 28 16:23:45] info     : 'mythbackend' start: /etc/init.d/mythtv-backend
[EDT Oct 28 16:26:45] error    : 'mythbackend' process is not running
[EDT Oct 28 16:26:45] info     : 'mythbackend' trying to restart
[EDT Oct 28 16:26:45] info     : 'mythbackend' start: /etc/init.d/mythtv-backend


Has anyone seen this before? Even better yet, how do I fix it? I want
to think it's permissons.


More information about the mythtv-users mailing list