Forum Discussion

Kalpesh's avatar
Kalpesh
Icon for Altostratus rankAltostratus
Jul 28, 2020

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

    • Kalpesh's avatar
      Kalpesh
      Icon for Altostratus rankAltostratus

      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

      • Kalpesh's avatar
        Kalpesh
        Icon for Altostratus rankAltostratus

        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 😉