Samadi
Altocumulus
Mar 09, 2021HTTP Monitor
Hi, I want to set an HTTP monitor with the "Receive String" and the "Receive Disable String" so my application return the below results : {"EXCEPTION":false,"RESULT":"{\"DBUp\":true,\"server...
Since all but one string indicates an "app is not OK" situation, why not write the monitor such that it simply checks for the one "app is OK" condition Receive String (whatever that string is), and let any other response naturally result in the health monitor check failing and the member eventually being marked down? Unless I'm missing some additional details that are not in your original question, it does not seem like you need a Receive Disable String on the monitor here. You do not need to describe all the false (not OK) conditions in a monitor to mark a resource as unavailable (down). You just need to define the one condition that produces the "success" result in the Receive String, and any other response is a "fail" result.
Hi
thank you for your feed back, I tried the options below but it do not work for me :
Receive String : (true.*true)
Receive Disable String : empty
any idea please ?