Forum Discussion

RMair's avatar
RMair
Icon for Nimbostratus rankNimbostratus
Dec 22, 2016

HTTP Health Monitor

I am trying to configure a health monitor for a tomcat server that will allow me to set the state of the member in the pool based on the contents of a file.

 

I created a text file on the server that contains either the word "Active" or the word "Inactive" depending on weather I want the member available or not in the pool.

 

I set the "Send String" to GET /F5/ HTTP/1.0\r\n\r\n

 

and I put "Active" as the Receive String and "Inactive" as the Receive Disable String.

 

The "Inactive" state never seems to work. The member node is always available regardless of the value in that file.

 

Can anyone point me in the right direction or give me an example of how best I could do this task?

 

1 Reply

  • I think your Receive and Receive Disable strings are too similar. Both are probably being matched, resulting in an UP status.

     

    notes that the strings are not case-sensitive when compared.

     

    LTM Monitors Reference indicates that the member is marked UP when both Receive and Receive Disabled strings are matched.

     

    Given this both of your strings contain 'active' and will be matched. Try changing the strings to something clearly distinguishable.

     

    If that doesn't work you may need to enable monitor logging or capture traffic to be sure you're receiving the expected result from the server. I have run into issues where the server application performed caching that had to be cleared.