Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux Virtual Server: Users

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

 

 

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded


paul.degtyarev at gmail

Feb 22, 2008, 9:03 AM

Post #1 of 3 (342 views)
Permalink
[lvs-users] checkcommand option in ldirector does not seem to work

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"


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


jmack at wm7d

Feb 22, 2008, 9:30 AM

Post #2 of 3 (328 views)
Permalink
Re: [lvs-users] checkcommand option in ldirector does not seem to work [In reply to]

On Fri, 22 Feb 2008, paul.degtyarev wrote:

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

is ldirectord like cron; has PATH=/bin:/usr/bin and runs as
some particular user?

Joe
--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

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


paul.degtyarev at gmail

Feb 22, 2008, 9:41 AM

Post #3 of 3 (326 views)
Permalink
Re: [lvs-users] checkcommand option in ldirector does not seem to work [In reply to]

No I actually run ldirectord standalone with debug option, my script
works now, it was stupid access right issue, I added +x to the script
and it works fine.
But now if I try to run ldirector via heartbeat - still does not work.


Joseph Mack NA3T wrote:
> On Fri, 22 Feb 2008, paul.degtyarev wrote:
>
>
>> 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.
>>
>
> is ldirectord like cron; has PATH=/bin:/usr/bin and runs as
> some particular user?
>
> Joe
>


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

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.