Mailing List Archive

[lvs-users] Unexplained external-perl failures
Hi,

I am using an external perl script to check the health state of the real
servers, but sometimes that script is failing with no apparent reason.

I've added the &ld_log line in the following block in check_external_perl
to write the errors to the log file:

if ($@ or $result != 0) {
&service_set($v, $r, "down");
&ld_log("Deactivated service $$r{server}:$$r{port}: $@
after calling (external-perl) $$v{checkcommand} with result $result");
&ld_debug(3, "Deactivated service $$r{server}:$$r{port}: " .
"$@ after calling (external-perl)
$$v{checkcommand} with result " .
"$result");
return 0;

And this is what I see in the messages log:

Mar 6 18:54:34 iinf035 ldirectord[16807]: Deactivated service
10.184.200.22:22: after calling (external-perl) /tmp/check_ssh.pl with
result

Notice that both $@ and $result are empty...so the script is not getting
killed by the alarm, but $result still ends up empty.. the script itself
*always* exists with an integer (1 or 0), so I'm not sure what is going on
and why $result ends up empty.

Any hints on how I can further debug this would be helpful...

Thanks,
Dan
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@LinuxVirtualServer.org
Send requests to lvs-users-request@LinuxVirtualServer.org
or go to http://lists.graemef.net/mailman/listinfo/lvs-users