Forum Discussion
F5 Health Monitor Receive String as JSON
Thank you Kay.
First we have to fix the send string.
We tested the send string with OpenSSL and we received 200 ok
echo -e "GET /api/v1/system/services/status?service_names=nae-kmip HTTP/1.1\r\nHost: 10...***.\r\nConnection: Close\r\n\r\n";sleep 1) | openssl s_client -connect 10...***.:443
--
HTTP/1.1 200 OK
Date: Mon, 11 Nov 2024 18:24:32 GMT
Content-Type: application/json; charset=UTF-8
:
{"status":"started","services":[{"name":"nae-kmip","status":"started"}]}
However, adding this string into F5 Health Monitor Send Field:
GET /api/v1/system/services/status?service_names=nae-kmip HTTP/1.1\r\nConnection: Close\r\n\r\
We receive 400 [Bad Request].
So what is the difference running from the box/Linux CMD with OpenSSL and running from F5 Application?
Is there setting in F5 we are missing?
Please advise.
Thanks.
HTTP/1.1 always needs the Host header
try:
GET /api/v1/system/services/status?service_names=nae-kmip HTTP/1.1\r\nHost: xyz.example.com\r\nConnection: Close\r\n
or try HTTP/1.0
- NetmartNov 20, 2024Nimbostratus
Thank you Kay.
The Host in your example: "xyz.example.com" is it refering to the VIP ore Real IP.
Please advise.
Martin
- zamroni777Nov 21, 2024Nacreous
host header should contains value that webserver (pool member) is configured to accept.
usually it's the webserver's ip address but can be application's hostname.
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