[prev in list] [next in list] [prev in thread] [next in thread]
List: loadbalancing-l
Subject: Re: Re. : [load balancing] Alteon AD3 script health check problem
From: Apostolos Asteriadis <asteriad () auth ! gr>
Date: 2002-12-10 18:17:39
[Download RAW message or body]
Stephane
thanks for your reply. I haven't tried it but I ahve tried something
similar and it didn't work. I tried to do scripted health check on a basic
http service but instead of checking just the "HTTP/1.1 200 OK" bit,
I tried to check the next line of the HTTP header (which starts with:
"Date:"
So my script looked like:
/c/slb/adv/script 1
open "80"
send "GET /index.htm HTTP/1.1\\r\\nHOST:www.xyz.com\\r\\n\\r\\n"
expect "HTTP/1.1 200 OK"
expect "Date:"
close
Unfortunately, it didn't work again....
when I removed the "HTTP/1.1 200 OK" bit and left the "Date:", it worked
Regards
Apostolos
On Tue, 10 Dec 2002 stephane.domenger@equant.com wrote:
>
> Have you try this ?
>
> open "5050"
> send "GET @ping@\\r\\n\\r\\n"
> expect "GET $ping$ HTTP/1.1"
> expect "Connection: Keep-Alive"
> close
>
>
>
>
> Apostolos
> Asteriadis Pour : <lb-l@vegan.net>
> <asteriad@auth.g cc :
> r> Objet : [load balancing] Alteon AD3 script health check
> Envoyé par : problem
> owner-lb-l@vegan
> .net
>
>
> 10/12/2002 15:55
> Veuillez
> répondre à lb-l
>
>
>
>
>
>
> Hello,
>
> I am trying to write a script to do a health check for a specific service.
> This is what happens when I do the health check manually (e.g. from
> a unix terminal window)
>
> telnet 1.2.3.4 5050
>
> I then type:
>
> GET @ping@
>
> and I press ENTER twice.
>
> This is what I am getting back (when the service is up):
>
> GET $ping$ HTTP/1.1
> Connection: Keep-Alive
> User-Agent: DR_Com MS
> data-version: 2_0
>
>
> Based on the above, this is how my alteon script looks like (unfortuntely
> it
> doesn't work...)
>
> c/slb/group 233
> health script2
>
> /c/slb/adv/script 2
> open "5050"
> send "GET @ping@\\r\\n\\r\\n"
> expect "GET $ping$ HTTP/1.1\\r\\nConnection: Keep-Alive\\r\\nUser-Agent:
> DR_Com MS\\r\\ndata-version: 2_0"
> close
>
>
> Strangely enough, when my expect string is:
>
> expect "GET $ping$ HTTP/1.1"
>
> the health check works.
>
>
>
> When my expect string is:
>
> expect "GET $ping$ HTTP/1.1\\r\\n"
>
> it doesn't.
>
>
> I suspect the problem is related to the newlines and carriage returns
> (\\r\\n) in the expect string.
> But how acn I make the aleton expect a new line after GET $ping$ HTTP/1.1
> ??
>
>
> What am I doing wrong?
>
>
> Thanks in advance
> Apostolos
>
>
>
>
>
>
>
>
> ____________________
> The Load Balancing Mailing List
> Unsubscribe: mailto:majordomo@vegan.net?body=unsubscribe%20lb-l
> Archive: http://vegan.net/lb/archive
> LBDigest: http://lbdigest.com
> MRTG with SLB: http://vegan.net/MRTG
> Hosted by: http://www.tokkisystems.com
>
>
>
>
>
> ____________________
> The Load Balancing Mailing List
> Unsubscribe: mailto:majordomo@vegan.net?body=unsubscribe%20lb-l
> Archive: http://vegan.net/lb/archive
> LBDigest: http://lbdigest.com
> MRTG with SLB: http://vegan.net/MRTG
> Hosted by: http://www.tokkisystems.com
>
____________________
The Load Balancing Mailing List
Unsubscribe: mailto:majordomo@vegan.net?body=unsubscribe%20lb-l
Archive: http://vegan.net/lb/archive
LBDigest: http://lbdigest.com
MRTG with SLB: http://vegan.net/MRTG
Hosted by: http://www.tokkisystems.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic