Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-24509

HTTP agent request returns code 400

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.0.0rc1, 7.0.5
    • None
    • None

      I had a http agent restconf request that worked in 6.4 and stopped working when I upgraded to 7.0rc1

       

      Steps to reproduce:

      1. Create a HTTP agent item with the following. This request polls power supply data from Nokia NSP Restconf API.
        1. https://<URL>/restconf/operations/nsp-inventory:find
        2. Unknown macro: {   "nsp-inventory}

          }

        3. Headers: Content-Type: application/json , Authorization: <Bearer "Token">
        4. Request Type: Post
        5. Type of Information: Log

      Result:

      Response code "400" did not match any of the required status codes "200"
      {"ietf-restconf:errors":{"error":[

      {"error-type":"application","error-tag":"bad-element","error-path":"/restconf/operations/nsp-inventory:find","error-message":"Not Supported"}

      ]}}

      See Screenshots

      Expected:
      See Screenshots

      {"nsp-inventory:output":{"data":[{"@":

      {"nsp-model:schema-nodeid":"/nsp-equipment:network/network-element/hardware-component/power-supply","nsp-model:identifier":"/nsp-equipment:network/network-element[ne-id='<IP ADDRESS>']/hardware-component/power-supply[component-id='shelf=1/powersupply=1']","nsp-model:sources":["fdn:realm:sam:network:<IP ADDRESS>:shelf-1:psTray-1"]}

      ,"ne-name":"<HOSTNAME>","part-number":"<PART NUM>","name":"Power Supply Tray - 1/1","oper-state":"enabled","state-reason":[],"mfg-date":"08/17/2020","admin-state":"unlocked","serial-num":"<SERIAL NUM>"},{"@":

      {"nsp-model:schema-nodeid":"/nsp-equipment:network/network-element/hardware-component/power-supply","nsp-model:identifier":"/nsp-equipment:network/network-element[ne-id='<IP ADDRESS>']/hardware-component/power-supply[component-id='shelf=1/powersupply=2']","nsp-model:sources":["fdn:realm:sam:network:<IP ADDRESS>:shelf-1:psTray-2"]}

      ,"ne-name":"<HOSTNAME>","part-number":"<PART NUM>","name":"Power Supply Tray - 1/2","oper-state":"enabled","state-reason":[],"mfg-date":"08/17/2020","admin-state":"unlocked","serial-num":"<SERIAL NUM>"}],"end-index":1,"start-index":0,"total-count":2}}

        1. Screenshot 2024-05-17 112535.png
          Screenshot 2024-05-17 112535.png
          108 kB
        2. Screenshot 2024-05-17 113455.png
          Screenshot 2024-05-17 113455.png
          87 kB
        3. Screenshot 2024-05-17 112306.png
          Screenshot 2024-05-17 112306.png
          147 kB
        4. screenshot-2.png
          screenshot-2.png
          186 kB
        5. screenshot-3.png
          screenshot-3.png
          441 kB

            zabbix.dev Zabbix Development Team
            kbuska Ken Buska
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: