Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

Need help in send and receive string set up for F5 ECV monitor when response is in json format

Himadri_Subudhi
Nimbostratus
Nimbostratus

Hi Team,

I am trying to set up monitoring for F5 load balancer pool. I am using below send and receive string however it does not work. It always shows status as RED even if server is UP.

Send string : GET /actuator/health HTTP/1.1\r\n -H Host:<host>

recv string :  \"UP\"

https://<url>/actuator/health is used for health check which returns response in json format as below.

{"status":"UP","groups":["liveness","readiness"]}

Could you please help what should be the correct recv string which we should set up so that monitoring works.

 

3 REPLIES 3

CA_Valli
MVP
MVP

I believe UP syntax should be enough to match this response.
Can you try to add \r\nConnection: Close\r\n\r\n at the end of your send string and try again? 

Hi @Himadri_Subudhi , 

why do you use \"UP\" . 

Test UP string only in the receive string. 

Bigip can monitor Json formats , have a look here : https://my.f5.com/manage/s/article/K02961575

 

_______________________
Regards
Mohamed Kansoh