Forum Discussion
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
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_gi
Nimbostratus
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_Piro2
Cumulonimbus
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"\}
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com