Forum Discussion
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.
- ricky_paulus_giNimbostratus
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.
- Stanislas_Piro2Cumulonimbus
According to this article (https://support.f5.com/csp/article/K5917) you can define this receive disable string:
\{"state":"(STARTING|STOPPING|ERROR|FIRST_RUN)"\}
and this receive string
\{"state":"RUNNING"\}