Forum Discussion

ERLomboy_27803's avatar
ERLomboy_27803
Icon for Nimbostratus rankNimbostratus
Jun 10, 2014

HTTP monitoring on different port

Hi,

 

Need assistance to properly setup http monitoring base on business requirement. The service is running on port 5101 but the page is hosted on port 5100

 

The resource URL check is http://poolmember:5100/f5monitor.html

 

the pool members are on port 5101.

 

or is this the right monitoring to do for a webpage?

 

5 Replies

  • You can certainly do this. Your monitor would look something like this (replace 10.10.10.10 with your server IP address and put the correct host in the GET send string):

    ltm monitor http http-test {
        defaults-from http
        destination 10.10.10.10:5100
        interval 5
        recv "200 OK"
        send "GET /f5monitor.html HTTP/1.1\\r\\nHost: host.domain.com\\r\\nConnection: Close\\r\\n"
        time-until-up 0
        timeout 16
    }
    
    • ERLomboy_27803's avatar
      ERLomboy_27803
      Icon for Nimbostratus rankNimbostratus
      Hi Cory, Thanks for this. If there are two members of the pool, how do we do it? also, the host that you mentioned, is this the member hostname or the Public domain name? http://10.10.10.10:5100/f5monitor.html, http://10.10.10.11:5100/f5monitor.html
    • Cory_50405's avatar
      Cory_50405
      Icon for Noctilucent rankNoctilucent
      I think you could remove the alias destination address and just add the alias port of 5100 like John said. ltm monitor http http-test { defaults-from http destination *:socalia interval 5 recv "200 OK" send "GET /f5monitor.html HTTP/1.1\\r\\nHost: host.domain.com\\r\\nConnection: Close\\r\\n" time-until-up 0 timeout 16 }
  • If service is running on 5100 but you want to monitor 5101 because 5101 indicates the status of the service on 5100, create a health monitor and make sure to populate "Alias Service Port" as 5101, and bind the monitor to the pool.

     

    Normally, monitor will check whatever port the pool members are running by default, but you can "force" it to check specific port by configuring the Alias Service Port.

     

  • Service is running on port 5101 but we want to monitor 5100. I have created the health check and added an alias for port 5100 then binded it to the pool. However, the pool is not coming up.

    have you tried tcpdump?

     tcpdump -nni 0.0:nnn -s0 -w /var/tmp/output.pcap host x.x.x.x and host y.y.y.y and port 5100 -v
    
    x.x.x.x is non floating self ip on server vlan
    y.y.y.y is server ip