Forum Discussion

chocokoala's avatar
chocokoala
Icon for Altostratus rankAltostratus
Mar 14, 2022

HTTP Monitor

I am new to f5, and i got assigned to create a health monitor (HTTP) for these 2 servers:

Can anyone help me what GET and Receive String should i put? Thanks!

[LB:Active:Changes Pending] ~ # curl -i http://10.48.245.84:8086/api/v2/write?bucket=desktops&precision=ms
[1] 20945
[LB:Active:Changes Pending] ~ # HTTP/1.1 405 Method Not Allowed
Allow: OPTIONS, POST
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
X-Influxdb-Build: ENT
X-Influxdb-Version: 1.9.5-c1.9.5
Date: Mon, 14 Mar 2022 22:58:54 GMT
Content-Length: 19

Method Not Allowed

[LB:Active:Changes Pending] ~ # curl -ik http://10.48.245.85:8086/api/v2/write?bucket=desktops&precision=ms
[1] 19604
[LB:Active:Changes Pending] ~ # HTTP/1.1 405 Method Not Allowed
Allow: OPTIONS, POST
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
X-Influxdb-Build: ENT
X-Influxdb-Version: 1.9.5-c1.9.5
Date: Mon, 14 Mar 2022 22:54:31 GMT
Content-Length: 19

Method Not Allowed

 

1 Reply

  • Hello, from response output it's very clear that GET method is not allowed. You don't want to use GET method in your monitor, and checking for any string in the response you posted makes no sense since it's not a working page.

     Try using "-X POST" syntax in your curl, and look for a string in your response that will always be displayed in a working scenario. 

    Then, refer https://support.f5.com/csp/article/K2167 to configure appropriate send and receive string.