<div><span class="gmail_quote">On 7/17/07, <b class="gmail_sendername">Tom Greer</b> <<a href="mailto:trgreer@gmail.com">trgreer@gmail.com</a>> wrote:</span></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><span class="q">On 7/17/07, <b class="gmail_sendername">Andrew Williams</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:lists@nikdoof.net" target="_blank">
lists@nikdoof.net</a>> wrote:</span><span class="q">
<div><span class="gmail_quote"></span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div><span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">disappointing, but at least I'm not alone. I'll assume ubuntu's<br>package of monit is messed up.
</blockquote>
<div> </div></span>
<div>The default cycle time for Monit is 120 seconds, so it'll take a while before monit notices, i've reduced my cycle down to 20 seconds. Check your syslog to see if its actually picking up that the process has died.
</div>
<div> </div></div></blockquote></div><br></span>The cycle time is not the problem. This used to work. Monit no longer seems to notice that the mythbackend has died.<br><br>I have not had any time to troubleshoot. I just keep restarting backends when I find one that is not running.
<br><br>Has anyone checked to see whether myth has modified its response to the port that monit is testing?<br><br>Any help is appreciated. </blockquote>
<div> </div>
<div>You need to check a few things:</div>
<div> </div>
<ol>
<li>Do you get any syslog output saying its died?</li>
<li>Is the PID file valid?</li>
<li>Are all your locations correct in the monit config</li></ol>
<div>Bar that, theres not much else you can investigate, i suspect its down to either the PID or init script path being wrong. Heres my config:</div>
<div> </div>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>check process mythbackend with pidfile /var/run/mythtv/mythbackend.pid<br> group mythtv<br> start program = "/etc/init.d/mythtv-backend restart"<br> stop program = "/etc/init.d/mythtv-backend stop"
<br> if failed port 6544 proto http then restart<br> if memory is greater than 50% for 10 cycles then exec "/usr/local/bin/monit-mythcheck"<br> depends on mysql</div>
<div> </div>
<div>check process mysql with pidfile /var/run/mysqld/mysqld.pid<br> group mythtv<br> start program = "/etc/init.d/mysql start"<br> stop program = "/etc/init.d/mysql stop"<br> if failed port 3306 then restart
<br> </div></blockquote><br> </div>
<div> </div>
<div><br> </div>