cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP monitor with specific curl command

Kalpesh
Altostratus
Altostratus

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

5 REPLIES 5

Lidev
MVP
MVP

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

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

If the goal is monitoring a node, you can't do a content check Monitor. The content check monitor is only available on pool/pool members

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.

Lidev
MVP
MVP

Hi

Ok cool, mark your answer as "the best" in order to pass your post as resolved 😉