Forum Discussion

sjaakie_85264's avatar
sjaakie_85264
Icon for Nimbostratus rankNimbostratus
Nov 26, 2018

host value in HTML monitor

HI all,

 

we a production environment which need to have maintenance once in a while. So the apps team created two clusters that are being mirrored, What they want to do is to utilize the F5 to switch traffic from one cluster to the other. I dont want to be bothered by them so I thought i could write a custom http monitor that checks a simple html page and based on the value received from that page the node gets enabled or disabled. This webpage is on each node. I checked http monitor and there is no way to add a host variable?

 

Does that mean i have to write 4 individual monitors? Other suggestion are welcome :)

 

Thanks!

 

setup: 1 virtual server with 4 nodes 2 are enabled 2 are disabled -> based on the content of the webpage

 

  • The Send and Receive Strings in the HTTP monitor can be used to send a request for a page on the server and look for the text in the response that is defined in the Receive String.

     

    If the ressponse contains the Receive String then the pool member is marked up for use, otherwise it will marked down.