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"
|