Forum Discussion

Michaelyang's avatar
Michaelyang
Icon for Cirrostratus rankCirrostratus
Nov 29, 2022

Http monitor on different port

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.

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

    Kind regards,
    Patrik

     

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

    Kind regards,
    Patrik

     

  • 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 

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