Forum Discussion
Chris_Miller
Jan 11, 2011Altostratus
Let's add some logging to troubleshoot.
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
if { [active_members $default_pool] < 1 } {
pool pool_http_sorry_server
persist none
log local0. "Used sorry pool because there were [active_members $default_pool] members in $default_pool"
} else {
pool $default_pool
log local0. "Used default pool because there were [active_members $default_pool] members in $default_pool"
}
}
This will log to /var/log/ltm and the "Local Traffic" logs section of the GUI.