<div>Problem resolved,</div>
<div> </div>
<div>rgmanager seems to rely on the 'status' action rather than on the 'monitor' one.</div>
<div> </div>
<div>Which doesn't seem to conform to the opencf API (<a href="http://www.opencf.org/cgi-bin/viewcvs.cgi/*checkout*/specs/ra/resource-agent-api.txt?rev=1.10">http://www.opencf.org/cgi-bin/viewcvs.cgi/*checkout*/specs/ra/resource-agent-api.txt?rev=1.10</a>) chapter 3.4.3 (is this doc outdated ?) that states that 'start' 'stop' 'monitor' and 'meta-data' are mandatory.</div>
<div> </div>
<div> </div>
<div>Regards</div>
<div><br><br> </div>
<div><span class="gmail_quote">2009/8/10, brem belguebli <<a href="mailto:brem.belguebli@gmail.com">brem.belguebli@gmail.com</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi,</div>
<div> </div>
<div>I have written a custom resource script that starts, stops and "meta-data" 's with the correct return value (no error).</div>
<div> </div>
<div>Everything seems to work fine except the fact that rgmanager never runs the custom monitor action defined in my resource metadata.</div>
<div> </div>
<div>I have lowered the interval value for monitor action to 10 ( are the interval and timeout units in seconds by default ?) but nothing happens.</div>
<div> </div>
<div>I have added a trace to the monitor case of my resource script that ocf_log debug "monitor started at `date +%H:%M:%S`" but it never gets there:</div>
<div> </div>
<div>----------------------------------------------8<--------------------------------------</div>
<div>
<p>case $1 in </p>
<p>start) ....................</p>
<p> ;;</p>
<p>stop) ..........................</p>
<p> ;;</p>
<p>monitor) ocf_log debug "at `/bin/date +%H:%M:%S`, launching monitor"<br> check_conf<br> check_status<br> check_md_state<br> if [ $? -eq 33 ]; then<br>
repair<br> fi<br> ;;</p>
<p>meta-data) cat `echo $0 | sed 's/^\(.*\)\.sh$/\1.metadata/'`<br> exit $OCF_SUCCESS<br> ;;</p>
<p>*) echo "usage: $0 {start|stop|monitor|meta-data}"<br> ;;<br>esac<br>---------------------------------------->8------------------------------------------------</p></div>
<div> </div>
<div>Any idea ? Thanks</div>
<div> </div>
<div>attached my meta-data </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div><br clear="all"></blockquote></div><br>