lvs mysql负载均衡的问题ldirect日志checktype must be "connect", "negotiate", "on", "off", "ping", "external" or a positive number

我的配置如下:我要同时提供http和mysql的负载

ldirectord.cf
checktimeout=3
checkinterval=1
fallback=127.0.0.1:80
autoreload=yes
logfile="/var/log/ldirectord.log"
#logfile="local0"
#emailalert="admin@x.y.z"
#emailalertfreq=3600
#emailalertstatus=all
quiescent=yes

# Sample for an http virtual service
virtual=192.168.1.240:80
real=192.168.1.233:80 gate
real=192.168.1.234:80 gate
fallback=127.0.0.1:80 gate
service=http
request="helth.html"
receive="Ok"
virtualhost=192.168.1.240
scheduler=rr
#persistent=600
#netmask=255.255.255.255
protocol=tcp
checktype=negotiate
checkport=80

virtual = 192.168.1.240:3306
real=192.168.1.253:3306 gate
service=mysql
scheduler=rr
protocol=tcp
checktype=connect

下面是日志tail -f ldirectord.log
[Thu Apr 29 18:13:08 2010|ldirectord|5704] Error [5704] reading file /etc/ha.d/ldirectord.cf at line 211: checktype must be "connect", "negotiate", "on", "off", "ping", "external" or a positive number

不清楚check为啥不行,还是哪配置的不对

Forums:

heartbeat[9402]: 2010/05/06_10:03:11 info: Heartbeat shutdown in progress. (9402)
heartbeat[10289]: 2010/05/06_10:03:11 info: Giving up all HA resources.
ResourceManager[10302]: 2010/05/06_10:03:11 info: Releasing resource group: master IPaddr::192.168.1.240/24/eth0:0 IPaddr::19
2.168.1.67/24/eth0:1 IPaddr::192.168.1.62/24/eth0:2 varnishDR mysqlproxyDR nginxDR ldirectord
ResourceManager[10302]: 2010/05/06_10:03:11 info: Running /etc/ha.d/resource.d/ldirectord stop
ResourceManager[10302]: 2010/05/06_10:03:11 info: Running /etc/ha.d/resource.d/nginxDR stop
ResourceManager[10302]: 2010/05/06_10:03:11 ERROR: Return code 255 from /etc/ha.d/resource.d/nginxDR
ResourceManager[10302]: 2010/05/06_10:03:12 info: Retrying failed stop operation [nginxDR]
ResourceManager[10302]: 2010/05/06_10:03:13 info: Running /etc/ha.d/resource.d/nginxDR stop
ResourceManager[10302]: 2010/05/06_10:03:13 ERROR: Return code 255 from /etc/ha.d/resource.d/nginxDR
ResourceManager[10302]: 2010/05/06_10:03:14 info: Retrying failed stop operation [nginxDR]
ResourceManager[10302]: 2010/05/06_10:03:14 info: Running /etc/ha.d/resource.d/nginxDR stop
ResourceManager[10302]: 2010/05/06_10:03:14 ERROR: Return code 255 from /etc/ha.d/resource.d/nginxDR
ResourceManager[10302]: 2010/05/06_10:03:15 info: Retrying failed stop operation [nginxDR]
ResourceManager[10302]: 2010/05/06_10:03:15 info: Running /etc/ha.d/resource.d/nginxDR stop
ResourceManager[10302]: 2010/05/06_10:03:15 ERROR: Return code 255 from /etc/ha.d/resource.d/nginxDR
ResourceManager[10302]: 2010/05/06_10:03:16 info: Retrying failed stop operation [nginxDR]
ResourceManager[10302]: 2010/05/06_10:03:16 info: Running /etc/ha.d/resource.d/nginxDR stop
ResourceManager[10302]: 2010/05/06_10:03:16 ERROR: Return code 255 from /etc/ha.d/resource.d/nginxDR
ResourceManager[10302]: 2010/05/06_10:03:17 info: Retrying failed stop operation [nginxDR]
ResourceManager[10302]: 2010/05/06_10:03:17 info: Running /etc/ha.d/resource.d/nginxDR stop
ResourceManager[10302]: 2010/05/06_10:03:17 ERROR: Return code 255 from /etc/ha.d/resource.d/nginxDR
ResourceManager[10302]: 2010/05/06_10:03:18 info: Retrying failed stop operation [nginxDR]
ResourceManager[10302]: 2010/05/06_10:03:18 info: Running /etc/ha.d/resource.d/nginxDR stop
ResourceManager[10302]: 2010/05/06_10:03:18 ERROR: Return code 255 from /etc/ha.d/resource.d/nginxDR
ResourceManager[10302]: 2010/05/06_10:03:19 info: Retrying failed stop operation [nginxDR]
ResourceManager[10302]: 2010/05/06_10:03:19 info: Running /etc/ha.d/resource.d/nginxDR stop
ResourceManager[10302]: 2010/05/06_10:03:19 ERROR: Return code 255 from /etc/ha.d/resource.d/nginxDR
ResourceManager[10302]: 2010/05/06_10:03:20 info: Retrying failed stop operation [nginxDR]
ResourceManager[10302]: 2010/05/06_10:03:20 info: Running /etc/ha.d/resource.d/nginxDR stop
ResourceManager[10302]: 2010/05/06_10:03:20 ERROR: Return code 255 from /etc/ha.d/resource.d/nginxDR
ResourceManager[10302]: 2010/05/06_10:03:21 info: Retrying failed stop operation [nginxDR]
ResourceManager[10302]: 2010/05/06_10:03:21 info: Running /etc/ha.d/resource.d/nginxDR stop
ResourceManager[10302]: 2010/05/06_10:03:21 ERROR: Return code 255 from /etc/ha.d/resource.d/nginxDR
ResourceManager[10302]: 2010/05/06_10:03:22 info: Retrying failed stop operation [nginxDR]
ResourceManager[10302]: 2010/05/06_10:03:22 info: Running /etc/ha.d/resource.d/nginxDR stop
ResourceManager[10302]: 2010/05/06_10:03:22 ERROR: Return code 255 from /etc/ha.d/resource.d/nginxDR
ResourceManager[10302]: 2010/05/06_10:03:22 ERROR: Resource script for nginxDR probably not LSB-compliant.
ResourceManager[10302]: 2010/05/06_10:03:22 WARN: it (nginxDR) MUST succeed on a stop when already stopped
ResourceManager[10302]: 2010/05/06_10:03:22 WARN: Machine reboot narrowly avoided!