Forum Discussion

cawong23_136311's avatar
cawong23_136311
Icon for Altostratus rankAltostratus
Apr 24, 2017

LTM http monitor same VS but is it possible for different virtual host

Hi F5 Buddy,

 

We got a case that the apache server which is configured different virtual hosts for different services.

 

E.g

 

Is that any http monitor that can monitor different virtual hosts?

 

We searched F5 resources but seems no related information about this.

 

Thanks a in advance.

 

4 Replies

  • Yes, Configure custom http monitor with send n receive string to check status of pool.

     

    • cawong23_136311's avatar
      cawong23_136311
      Icon for Altostratus rankAltostratus

      Hi F5_rock,

       

      However, if I want to monitor each of virtual path health status, how can I perform this?

       

      The ideal solution is that the monitor can response which of the virtual host is unhealthy.

       

      Thanks a lot.

       

  • As mentioned by f5_rock, you can specify a host in the request string e.g

    GET / HTTP/1.1\r\nHost: xyz.mydomain.com\r\nConnection: Close\r\n\r\n
    
  • Hi,

    if you want to monitor any apps (not virtual host as in your example, apps share the same virtual host )

    create one pool per app:

      • pool p_abc
      • monitor
        GET /abc/ HTTP/1.1\r\nHost: www.abc.com\r\nConnection: Close\r\n\r\n
      • pool p_def
      • monitor
        GET /def/ HTTP/1.1\r\nHost: www.abc.com\r\nConnection: Close\r\n\r\n
      • pool p_ghi
      • monitor
        GET /ghi/ HTTP/1.1\r\nHost: www.abc.com\r\nConnection: Close\r\n\r\n