Forum Discussion
The_Bhattman
Dec 24, 2009Nimbostratus
Glad 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