Stefan98_85555
Nimbostratus
Oct 26, 2011disable pool member with an irule
I try to disable pool members with an http-request. The request has the form :
http://VIRTUAL_SERVER/down/NODE_IP
I wrote this irule:
when HTTP_REQUEST {
if {[scan [HTTP::uri] "/down/%s" server] == 1} {
LB::down node $server
log local0. "URI: [HTTP::uri] MATCHED. server=$server"
} else {
}
}
The irule seems to work, because if i call the URL, i get an log entry:
Oct 26 15:00:37 tmm tmm[1955]: Rule MN_NODE : URI: /down/192.168.0.11 MATCHED. server=192.168.0.11
But the server won't be disabled. What did i wrong?
thanks for help...