Forum Discussion

ChetanAr_315803's avatar
Jun 09, 2017

Monitor receive string needs to read from send string

I've a requirement for health monitoring where receive string has a dependency send string as below:

 

send string: healthcheck?pretty=true/false

 

receive string: true if pretty=true in send string and same for false.

 

If false is encountered in send string and accordingly in receive string, pool will be marked as down.

 

Approach: If i keep 'true' in send string and mention just 'true' in receive string and 'false' in send string and leave 'true' in receive string, it will mark the pool down which will eventually be marked as down as send string will have 'false' in it.

 

Is this the correct approach?

 

4 Replies

  • Hi,

     

    You can create 2 monitors

     

    • Monitor-true
      • send string : healthcheck?pretty=true
      • receive string : pretty=true
    • Monitor-false
      • send string : healthcheck?pretty=false
      • receive string : pretty=false

    And assign both to the same pool.

     

  • What i understand here, if if application will return

    true
    then f5 will make pool up & in
    false
    case system will make pool down right?

    Requirement is not clear, Please explain that.

    • ChetanAr_315803's avatar
      ChetanAr_315803
      Icon for Cirrus rankCirrus

      yes, that is correct. If false is encountered in send string and accordingly in receive string, pool will be marked as down. I think if i keep 'true' in send string and mention just 'true' in receive string and 'false' in send string and leave 'true' in receive string, it will mark the pool down which will eventually be marked as down as send string will have 'false' in it.

       

      Do you think it is a correct approach?

       

  • P_K's avatar
    P_K
    Icon for Altostratus rankAltostratus

    Chetan-

    You do not have to send both strings to the server.. I still dont understand why you want to send both true & false strings.

    If your expected Receive String is "True", you can use just true in that context and anything else will be marked down.

    If you by chance have access to command line, run the below command from your F5 and post the result which might help us to help you better.

    (echo -ne "Send String"; cat) | nc 'serverIP' 'ServerPort'

    or

    curl -vk http://ServerIP:ServerPort/healthcheck?pretty=true/false