Forum Discussion
The_Bhattman
Dec 22, 2009Nimbostratus
Hi Itamar,
My last suggestion won't work if the GTM cannot reach the servers for whatever reason. (Firewall or routing not allowing it).
Since you are Viprion prior to v10 what you can do is monitor is have the GTM monitor the virtual address
For example the GTM monitors the vip http://vip_address/status. Where the status page displays a message telling the GTM's monitor that it's down when it X amount of nodes are left.
The GTM will then mark it down and thus you will achieve your objective.
Here is a simple example
LTM irule on virtual address port 80 you are monitoring
when HTTP_REQUEST {
if {[HTTP::uri] eq "/status" } {
set response "BIGIP Pool Status - [clock format [clock seconds]]"
if { [active_members [LB::server pool] ] < 2 } {
set response "$response DOWN - $selectedpool
"
} else {
set response "$response UP - $selectedpool
"
}
HTTP::respond 200 content $response "Content-Type" "text/html"
}
}
Then create a HTTP monitor on the GTM that looks at http://vip_address/status for an UP or DOWN string on the virtual address.
Does that help?
Bhattman