I want to know if can create an iRule to select the health monitor for the pool looking at the host name value in the http header of the request.
We have a scenario where a common pool (Pool Members are HA-Proxy router) is used by many VIPs. We want to apply the iRule on the VIPs which can select/assign the specific health monitor to common pool based on the SNI value on the http request.
Pool monitoring works separately from the regular traffic. Actually, regular traffic is managed by TMM deamon and monitoring uses a different one (bigd).
Having said this, you could modify some big-ip configuration using iRules+iCalls but I don't recommend you do that. Your best chance is to configure a custom monitor instead.