Hi jsipies,
I would suggest not using variables in iRules unless you have to. Otherwise your just wasting CPU Cycles.
I would suggest engaging some logging inside of both events so that you can see in the log why the events are not lining up properly. Sometimes seeing what the iRule is seeing can clear up the issue.
when HTTP_REQUEST {
if { [matchclass [string tolower [HTTP::path]] starts_with $::class_Aprimo_Reports_Paths] } {
select Report Server pool
log local0. "Reports Match: [HTTP::host][HTTP::uri]"
pool pool_int_aprRPT_http
}
else {
select web server pool
log local0. "No Reports Match: [HTTP::host][HTTP::uri]"
pool pool_int_apr_http
}
}
Look for these log entries in your LTM Log (/var/log/ltm) and see what the [HTTP::uri] values are and make sure that they match up with what is in the Data Group and let us know what you find.
Hope this helps.