I have a virtual server that essentially uses an iRule to connect at runtime to an external URL. For example, say I’m connecting to an Amazon Web Service called fred.aws.com. In my iRule I do a DNS lookup of fred.aws.com and then connect to the first IP address returned.
Now I want a health monitor to know when the connection to fred.aws.com is unavailable. How do I get the monitor to send the GET string to “fred.aws.com”? Is it enough to do this:
Send String: GET /health/health.html HTTP/1.1\r\nHost: fred.aws.com\r\nConnection: Close\r\n\r\n
Now I want a health monitor to know when the connection to fred.aws.com is unavailable. How do I get the monitor to send the GET string to “fred.aws.com”?
you do not have fred.aws.com pool, do you? where will you assign the monitor to?
although, you can create dummy pool and assign the monitor to, you need static ip for fred.aws.com pool member unless you use node fqdn which is introduced in 11.6.0 (so, you do not need your current irule logic which resolves fqdn on-the-fly).
Populate pools by FQDN
This release includes the ability to configure a BIG-IP system with nodes and pool members that are identified with fully-qualified domain names (FQDNs). When configuring pool members with FQDN, addresses dynamically follow DNS changes. Fully dynamic DNS-managed pools may even be created.
Perhaps I can use another method… I have a GTM wide-ip that client systems use to connect to the VIP. Perhaps I could add the health monitor to the GTM pool?
Solved this one by creating a virtual server in front of the one with the irule. This vsrv’s pool has one member, the one with the irule. In the first vsrv’s pool, I added a health monitor to do the http GET. Works well!