I have a service dependent on two separate keepalive ports for an ip address. The first keepalive monitors the root server web service and the second keepalive monitors an application web service on the server. If either go down I want the Load Balancer to stop services to that VIP.
I would like the state to go down if either service keepalive goes down or how can I have keepalive services watch each other and go down if it sees the other service down.
1. Save the script text as a file with no extension. i.e. ap-kal-tcp-ports
Script text is available at
stating line :!--- No echo.
Ending line: function SOCKET_CONNECT end )
2. Open an FTP session to the CSS (use CSS credentials).
3. change the directory to scripts
4. upload the file (ap-kal-tcp-ports)
5. configure keepalive type ap-kal-tcp-ports under service
ip address 192.168.1.1
ap-kal-tcp-ports "192.168.1.1 80 2099"
keepalive freq 15
6. Activate the service
7. Activate the Content rule
hope it helps
Syed iftekhar Ahmed
On the CSS you can use the ap-kal-httplist:
The script "ap-kal-httplist" will check a list of webpages with a HEAD request and will be considered failed if any of the pages does not
answer or replies with something different that "200 OK". With it, you should be able to check the status of both the web server and
applications server at the same time.
The correct syntax to use this script is /"keepalive type script ap-kal-httplist "server1 web1 server2 web2 ...."", /so for your environment, you will need to use something like:
ip address 10.10.10.11
keepalive port 80
keepalive type script ap-kal-httplist "10.10.10.11 /index_web.html
Also you use the ap-kal-tcpports:
You need to copy the script and then upload it into the CSS, it open a socket connection for the amount of ports that you need.
Hope this help.