Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-26 Thread RaSca
Il giorno Mar 24 Mag 2011 16:10:17 CET, Lars Ellenberg ha scritto: [...] exit $((! $?)) That is going to invert the code. the shell has ! for that. ! is_host_up Coffee? ;-) Ok, following your suggestions I've modified (and tested, of course) the script. Compacting as much

Re: [Linux-ha-dev] state of heartbeat resource agents

2011-05-26 Thread Raoul Bhatia [IPAX]
On 05/24/2011 05:28 PM, Raoul Bhatia [IPAX] wrote: postfix: fghaas reviewed my code. i tried to catch him on irc on how to progress with his comments. mysql-proxy: i basically want to implement the monitoring from the mysql ra for OCF_CHECK_LEVEL -gt 0. this is still on my todo list.

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-26 Thread RaSca
Il giorno Gio 26 Mag 2011 11:13:46 CET, RaSca ha scritto: [...] The new version is attached. Hi all, After talking with Dejan on IRC, here it is the new version of the agent. Major changes: - The script do not relies anymore on SSH for checking the correct fence of the device, instead it

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-26 Thread Lars Ellenberg
On Thu, May 26, 2011 at 06:31:16PM +0200, RaSca wrote: Il giorno Gio 26 Mag 2011 11:13:46 CET, RaSca ha scritto: [...] The new version is attached. Hi all, After talking with Dejan on IRC, here it is the new version of the agent. Major changes: - The script do not relies anymore on SSH

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-26 Thread Lars Ellenberg
On Thu, May 26, 2011 at 10:50:52PM +0200, Lars Ellenberg wrote: case $1 in gethosts) echo $hostname exit 0 ;; on) # Can't really be implemented because Hetzner webservice cannot power on a system exit 1 ;; off) # Can't really be implemented

Re: [Linux-ha-dev] [Linux-HA] Hetzner server stonith agent

2011-05-26 Thread Lars Ellenberg
On Thu, May 26, 2011 at 10:58:44PM +0200, Lars Ellenberg wrote: On Thu, May 26, 2011 at 10:50:52PM +0200, Lars Ellenberg wrote: case $1 in gethosts) echo $hostname exit 0 ;; on) # Can't really be implemented because Hetzner webservice cannot power on a