求助:rhel5+lvs(DR)+ldirectord+heartbeat UDP健康检查问题

两台rhel5(单网卡兼做真实服务器)+lvs(DR)+ldirectord+heartbeat
realserver有一应用程序绑定udp 1812端口,当我停掉应用后通过命令netstat -ntulp查看端口情况 1812不存在
但是在redirect通过ipvsadm -ln查看还是能检测到realserver的存在
为什么会这样?请高手给点意见
checktype我试了ping,connect,external都不成功
ldirectord.cf的配置如下:
#Global Directives
checktimeout=3
checkinterval=1
autoreload=yes
quiescent=no

virtual=172.16.100.222:1812
real=172.16.100.223:1812 gate
real=172.16.100.224:1812 gate
scheduler=rr
protocol=udp
checktype=connect
# checktype=external
# checkcommand=/etc/ha.d/resource.d/check.sh
service=radius

check.sh
#!/bin/sh
netstat -an|grep :1812
if test $? -eq 0
then
/bin/true
else
/bin/false
fi

Forums:

你应该检查远程端口是否存在而不是检查本机端口,理论上应该写一个脚本发送udp的字节到指定rs的端口查看返回值是否为预计的字符

学习,再学习!

Wow I must confess you make some very trechnant points.

If not for your writing this topic could be very cotnlouved and oblique. http://qdswjbgtcxg.com [url=http://rmiznbhmr.com]rmiznbhmr[/url] [link=http://ehzhuvj.com]ehzhuvj[/link]

randomness