LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] ldirectord proprietary request / receive message format

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [lvs-users] ldirectord proprietary request / receive message format
From: "Ken--@xxxxxxxxxxxxxxxxx" <dragonken@xxxxxxxxx>
Date: Fri, 11 Jul 2008 09:20:43 -0700 (PDT)
Should be System.exit(0).

Any more advise and Thanks for your attention.



Ken--@xxxxxxxxxxxxxxxxx wrote:
> 
> Hi All,
> 
> I found checkcommand may be useful in this case. From the man page of
> ldirectord:
> 
> [quote]
> checkcommand = "path to script"
> 
> This setting is used if checktype is external and is the command to be run
> to check the status of a real server. It should exit with status 0 if
> everything is ok, or non-zero otherwise.
> 
> Four parameters are passed to the script:
> * virtual server ip/firewall mark
> * virtual server port
> * real server ip
> * real server port
> Default: /bin/true 
> [/quote]
> 
> In my case, I will write a small java program for my client server
> monitoring. My question is:
> 
> What mean by 'It should exit with status 0 if everything is ok?' What mean
> by 'exit with status 0'?
> 
> Is it simply mean I write a java main class with 4 parameters as main args
> like this?
> 
> java -jar MyJavaMonitoring $1 $2 $3 $4
> 
> and simply print(use System.out.println("0")) a '0' when ok and '-1'
> otherwise?
> 
> Please help:>
> 
> Thanks and Best Regards,
> Ken
> 
> 
> 
> 
> Ken--@xxxxxxxxxxxxxxxxx wrote:
>> 
>> Hi,
>> 
>> I am trying to LVS our tcp client server with proprietary message format
>> like this:
>> 
>> <0x02><message><0x03>
>> 
>> I have add a message for health check:
>> 
>> request: <0x02>healthcheck<0x03>
>> response: <0x02>OK<0x03>
>> 
>> My question is, how can I set it in ldriectord.cf's request and receive
>> properties? It's binary string.
>> 
>> Regards,
>> Ken
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ldirectord-proprietary-request---receive-message-format-tp18355218p18407463.html
Sent from the LVS mailing list archive at Nabble.com.



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