LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] checkcommand option in ldirector does not seem to work

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] checkcommand option in ldirector does not seem to work
From: "paul.degtyarev" <paul.degtyarev@xxxxxxxxx>
Date: Fri, 22 Feb 2008 12:03:17 -0500
Hello,
I setup a simple service check script for ldirector which works just 
fine from a command line, it returns 0 on success, 2 on error, I check 
that with "echo $?".
But when I try to use it as a check command in ldirector it seems not to 
produce right result, ldirector seems to think that both my service 
servers are down.
I use the following ldirectord.cf:

virtual=192.168.0.77:5060
       real=192.168.0.9:5060 gate 1
       real=192.168.0.7:5060 gate 1              
       scheduler=rr
#       persistent=600
#       #netmask=255.255.255.255
       protocol=udp
       checktype=external
#       service=sip
#       login = "4000000"
#       passwd = "123456"
       checkcommand="/opt/ldirtest/test_opt.sh"
#      checktimeout=1
#       checkport=5060

Is there a way to debug ldirectord? It seems to produce very little info 
in log file.
I run it under centos 5.1, installed as rpm 
"heartbeat-ldirectord.x86_64  2.1.3-3.el5.centos"



<Prev in Thread] Current Thread [Next in Thread>