Hi

I'm trying to use an external check with heartbeat 2.1.4's ldirectord. However, even if the script I'm using only does an "exit 0", ldirectord seems to misread this and thus fails.

Here's my ldirectord.cf:

------------------------------------------
logfile="local0"

virtual = 192.168.4.90:22
        real = 10.1.129.4:22 masq 1
        fallback = 127.0.0.1:22
        checktype = external
        checkcommand = "/usr/local/sbin/check_lustre_on_realserver"
        checktimeout = 10
        scheduler = rr
        protocol = tcp
------------------------------------------

And ldirectord's debug output:

------------------------------------------
DEBUG2: Checking external: real server=external:"/usr/local/sbin/check_lustre_on_realserver":tcp:10.1.129.4:22:::1:masq:\/: (virtual=tcp:192.168.4.90:22) DEBUG2: Disabled real server=external:"/usr/local/sbin/check_lustre_on_realserver":tcp:10.1.129.4:22:::1:masq:\/: (virtual=tcp:192.168.4.90:22) DEBUG3: Deactivated service 10.1.129.4:22: after calling "/usr/local/sbin/check_lustre_on_realserver" with result 72057594037927935
------------------------------------------

And the script:

------------------------------------------
#!/bin/sh
exit 0
------------------------------------------

What might be wrong here?

cheers
--
Stefan Ott
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to