29-Nov-2022 00:08
Hello ,
Is it possible that the port on the http monitor is not the same as the port on the service?
EX.
F5 monitor 1111 port
But the pool server port is 2222
I thought about using an external monitor to achieve this, is there a way to use http monitor to achieve this?
Any help is appreciate.
Solved! Go to Solution.
29-Nov-2022 00:13
Yes, you can. It's called an Alias port and it's available in the HTTP Monitor settings:
Kind regards,
Patrik
29-Nov-2022 00:13
Yes, you can. It's called an Alias port and it's available in the HTTP Monitor settings:
Kind regards,
Patrik
29-Nov-2022 00:21 - edited 29-Nov-2022 00:25
Hi @Michaelyang,
that is doable. Just create a custom monitor of the type HTTP (or HTTPS) and specify an Alias Service Port.
The default value for this setting is *. If * is used, the monitor will use the member port. If you specify a port, like 1111, this port will be used.
See also: K18325135: How to use a custom service port for health monitors
EDIT: from AskF5 >> BIG-IP Local Traffic Manager: Monitors Reference Monitors Concepts
"Monitor destinations
By default, the value for the Alias Address setting in the monitors is set to the wildcard * Addresses, and the Alias Service Port setting is set to the wildcard * Ports. This value causes the monitor instance created for a pool, pool member, or node to take that node’s address or address and port as its destination."
KR
Daniel
29-Nov-2022 00:24 - edited 29-Nov-2022 00:26
Hi Michael,
during creation of a Monitor you can overwrite the IP/Port used as service endpoint via the "Alias Address" and "Alias Service Port" options. The wildcard option will resolve to the IP/Port of the individual pool member. If you specify hard coded Alias values, the monitor would us it as the endpoint...
And yes... you probably dont need to use an external monitor script for that task. The Alias Option allows you easily to monitor a service on server X and based on its availability you would set server a,b,c in pool 1 UP or Down.
Cheer, Kai
TL;DR: Need to reply quicker...
29-Nov-2022 00:27
Dang it, so much expertise in the room. @Patrik_Jonsson is the winner. 🙂
29-Nov-2022 00:29
Yep... @Patrik_Jonsson has some real quick fingers 🤪
29-Nov-2022 00:37
Here, have some Kudos on the house!