Forum Discussion
Itamar_39103
Nimbostratus
Dec 21, 2009disable virtual server if active members less than x
Hi all,
I am configuring a GTM machine to load balance DNS requests between virtual servers running on viprion machines.
One of the requirements of the configuration need...
The_Bhattman
Nimbostratus
Dec 24, 2009Glad it's working out for you.
I tweaked the code a bit for optimization
when HTTP_REQUEST {
if {[URI::query [HTTP::uri] ] starts_with "p=" } {
set poolname [URI::query [HTTP::uri] p]
set minmember [URI::query [HTTP::uri] mmember]
set response "BIGIP Pool Status - [clock format [clock seconds]]"
if { [active_members $poolname ] < $minmember } {
append response "DOWN - $poolname
"
} else {
append response "UP - $poolname
"
}
HTTP::respond 200 content $response "Content-Type" "text/html"
}
}
Bhattman
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects