<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Oct 27, 2010, at 10:42 AM, Pavlos Parissis wrote:</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font></div>do you enable debug by setting debug 1 on <a href="http://ha.cf/">ha.cf</a>?<div>do you see that WARN on your system?<br><div><div>stonith-ng: [3369]: WARN: parse_host_line: Could not parse (0 42): /usr/lib/stonith/plugins/external/rackpdu: line 125: local: can only be used in a function</div>
</div><div><br></div></div></blockquote><br></div><div>yes and yes,</div><div>it's a bug in the agent, but it is harmless:</div><div><br></div><div><div>diff -r e876b4cf30be -r 0807596ed11d lib/plugins/stonith/external/rackpdu</div><div>--- a/lib/plugins/stonith/external/rackpdu<span class="Apple-tab-span" style="white-space:pre"> </span>Mon Oct 11 17:47:08 2010 +0200</div><div>+++ b/lib/plugins/stonith/external/rackpdu<span class="Apple-tab-span" style="white-space:pre"> </span>Wed Oct 27 11:02:22 2010 -0400</div><div>@@ -122,7 +122,6 @@</div><div> case $incommand in</div><div> gethosts)</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span>if [ "$hostlist" = "AUTO" ]; then</div><div>-<span class="Apple-tab-span" style="white-space:pre"> </span> local snmp_result</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span> snmp_result=`snmpwalk -v1 -c $community $pduip $names_oid 2>&1`</div><div> if [ $? -ne 0 ]; then</div><div> ha_log.sh err "snmpwalk $community $pduip $names_oid failed. Result: $snmp_result"</div><div><br></div><div>Vadym</div><div><br></div></div><br></body></html>