Forum Discussion

cleiton_82's avatar
cleiton_82
Icon for Nimbostratus rankNimbostratus
Feb 08, 2023

create http monitoring in case of status 500 or higher disable node or pool-member

Help

I need

Create http monitor:  

POST 'http://192.168.0.100:8080/ClayRestApi/NMON40'

in case of status 500 or higher disable node or pool-member

5 Replies

  • cleiton_82 I believe what you are looking for is the following. Please note the line following the send string or receive string is what should be pasted into that respective box in the F5 GUI when configuring the health monitor

    send string:
    POST /ClayRestApi/NMON40 HTTP/1.0\r\n\r\n\r\n

    receive string:
    ^HTTP\/1.[10]\s5[0-9][0-9]

    • cleiton_82's avatar
      cleiton_82
      Icon for Nimbostratus rankNimbostratus

      Paulius 

      I need the string with the parameters below:

      curl --location --request POST 'http://192.168.0.100:8080/ClayRestApi/NMON40'\
      --header 'Content-Type: application/json'\
      --data-raw '{    "workflow": "modelSTUB",
          "recordType": "NMON40",
          "source": "SOURCE",
          "dest": "PMAX",
          "tranCode": "200",
          "dataSpecificationVersion": "2.0",
          "extendedHeader": "Via_Var",
          "clientIdFromHeader": "U_ORO001_CR",
          "recordCreationDate": "20230208",
          "recordCreationTime": "190706",
          "recordCreationMilliseconds": "016",
          "gmtOffset": "-03.00"
      }'

      • Paulius's avatar
        Paulius
        Icon for MVP rankMVP

        cleiton_82 In this comment is it necessary to send creation information and time offset or just the other header fields?