Forum Discussion

ricky_paulus_gi's avatar
ricky_paulus_gi
Icon for Nimbostratus rankNimbostratus
Mar 01, 2019

Multiple Received string in F5 HTTP health monitor

Hi Everyone,

 

I'd like ask a question about http health monitor.

 

We need to health monitor an application using multiple receive string and Disable Receive string. Here's the requirement :

 

 

How can we do this in F5 http monitor ?

 

Thanks,

 

Regards,

 

Ricky Paulus Ginting

 

4 Replies

  • There might be a few ways to tackle this.

     

    Personally what I would do is create 2 x HTTP monitors. One would have the receive string of 200 OK. The other one would have a receive string of the state running JSON response. Then apply both HTTP monitors to the pool. Now both health monitors will have to pass for the pool member to be marked as available.

     

  • Hi Michael,

     

    Thanks for the response. as you mentioned, "you would create 2 HTTP monitors." The question is Can we add multiple receive string values in a http monitor ?

     

    for example, we add multiple receive string values as the following:

     

    {"state":"RUNNING"} {"state":"STARTING"} {"state":"STOPPING"} {"state":"ERROR"} {"state":"FIRST_RUN"}

     

    Regards, Ricky Paulus Ginting

     

  • Hi Ricky. I don’t think it’s possible to specify multiple receive strings in a single http monitor. The only thing you can do is regex but I don’t think that would help you much in this scenario.

     

    Maybe configuring an external monitor might help.