Forum Discussion
HTTP monitor with specific curl command
Hello All,
Is it possible to integrate specific curl command as send string in HTTP health monitor?
I am able to run curl command from CLI and get good response, but similar command doesn't interprited in health monitor by F5.
command is as below.
curl -X GET http://10.10.10.3:8008/master -i -H 'Accept: application/json' -H 'Content-Type: application/json'
RESULT IS
HTTP/1.0 503 Service Unavailable
Hello Kalpesh,
Yes you can, you need to create a external monitor.
Take a look on this link https://support.f5.com/csp/article/K31435017
Regards
- KalpeshAltostratus
Thanks Lidev,
I tried this, but we need node specifc monitor. and in external monitor there is no possibility to check for response.
We need node to be UP if response code is 200 OK
- KalpeshAltostratus
hello,
issue is resolved by using below GET command in http monitor for pool
GET /master HTTP/1.0\r\nContent-Type: application/json\r\nAccept:application/json\r\nConnection: Close\r\n\r\n
this is interpretation of curl command in GET format.
Hi
Ok cool, mark your answer as "the best" in order to pass your post as resolved 😉
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