Just in case you haven't figured out yet.... host_id and host_name holds the id and name of the host, you can easily execute your fencing command like `fence #{host_name}` ...<br><div><br></div><div>Good luck</div><div><br></div><div>Ruben</div><br><div class="gmail_quote">On Tue Nov 18 2014 at 8:13:23 PM Sander Klein <<a href="mailto:roedie@roedie.nl">roedie@roedie.nl</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Can anyone help me with modifying ft/host_error.rb to call a custom<br>
fencing script.<br>
<br>
I would like to feed my script the ID of the failing host. My script<br>
will then do some checks and return 0 if the host is indeed dead and<br>
host_error.rb can continue resubmitting VM's. It will return 1 if the<br>
host is not dead and host_error.rb must do nothing.<br>
<br>
Since I'm not a ruby guy I was hoping if anyone could help me with a<br>
couple of lines or a small patch.<br>
<br>
Greets,<br>
<br>
Sander<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/users-opennebula.<u></u>org</a><br>
</blockquote></div>