<div><span class="gmail_quote">On 7/17/07, <b class="gmail_sendername">Tom Greer</b> &lt;<a href="mailto:trgreer@gmail.com">trgreer@gmail.com</a>&gt; 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> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:lists@nikdoof.net" target="_blank">
lists@nikdoof.net</a>&gt; 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&#39;m not alone. I&#39;ll assume ubuntu&#39;s<br>package of monit is messed up. 
</blockquote>
<div>&nbsp;</div></span>
<div>The default cycle time for Monit is 120 seconds, so it&#39;ll take a while before monit notices, i&#39;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>&nbsp;</div></div></blockquote></div><br></span>The cycle time is not the problem.&nbsp; This used to work.&nbsp; Monit no longer seems to notice that the mythbackend has died.<br><br>I have not had any time to troubleshoot.&nbsp;&nbsp; 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>&nbsp;</div>
<div>You need to check a few things:</div>
<div>&nbsp;</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>&nbsp;</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>&nbsp;group mythtv<br>&nbsp;start program = &quot;/etc/init.d/mythtv-backend restart&quot;<br>&nbsp;stop program&nbsp; = &quot;/etc/init.d/mythtv-backend stop&quot;
<br>&nbsp;if failed port 6544 proto http then restart<br>&nbsp;if memory is greater than 50% for 10 cycles then exec &quot;/usr/local/bin/monit-mythcheck&quot;<br>&nbsp;depends on mysql</div>
<div>&nbsp;</div>
<div>check process mysql with pidfile /var/run/mysqld/mysqld.pid<br>&nbsp;group mythtv<br>&nbsp;start program = &quot;/etc/init.d/mysql start&quot;<br>&nbsp;stop program = &quot;/etc/init.d/mysql stop&quot;<br>&nbsp;if failed port 3306 then restart
<br>&nbsp;</div></blockquote><br>&nbsp;</div>
<div>&nbsp;</div>
<div><br>&nbsp;</div>