Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Http monitor on different port

Michaelyang
Cirrostratus
Cirrostratus

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.

1 ACCEPTED SOLUTION

Yes, you can. It's called an Alias port and it's available in the HTTP Monitor settings:

Patrik_Jonsson_0-1669709616257.png

Kind regards,
Patrik

 

View solution in original post

6 REPLIES 6

Yes, you can. It's called an Alias port and it's available in the HTTP Monitor settings:

Patrik_Jonsson_0-1669709616257.png

Kind regards,
Patrik

 

Daniel_Wolf
Nacreous
Nacreous

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 

Kai_Wilke
MVP
MVP

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...


iRule can do… 😉

Daniel_Wolf
Nacreous
Nacreous

Dang it, so much expertise in the room. @Patrik_Jonsson is the winner. 🙂

Yep... @Patrik_Jonsson has some real quick fingers 🤪


iRule can do… 😉

Here, have some Kudos on the house!