Ad Widget

Collapse

HTTP Agent Issue in v5.0.1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sreed7164
    Junior Member
    • Jul 2015
    • 3

    #1

    HTTP Agent Issue in v5.0.1

    I'm trying to pull an info file from a local HTTP device - no authentication, no HTTPS, just some plain text.
    When I setup the HTTP Agent item and put all of the info in I try to test it but the Item Test always comes back with;

    - Incorrect value "[]" for "headers" field.
    - Incorrect value "[]" for "query_fields" field.

    OR something similar with If I try to add values (I've tried putting real headers in, just comes back with the same error but with my text in the list)
    - Incorrect value "{"name":{"1":""},"value":{"1":""}}" for "headers" field.
    - Incorrect value "{"name":{"1":""},"value":{"1":""}}" for "query_fields" field.

    I installed from the zabbix repo, and as far as I can tell libcURL is linked up.
    Anybody have ideas of what I've done wrong here?

    Thanks!
    Last edited by sreed7164; 18-06-2020, 17:08.
  • cszikszoy
    Junior Member
    • Mar 2020
    • 7

    #2
    Seeing the same behavior here too.

    Attempting to query an API using the HTTP Agent and seeing the same exact "Incorrect value" errors when I try to test the query.

    I've verified that the query works via curl on the agent, this works:
    Code:
    curl -v -X GET \
    -H "Authorization: SSWS xxxx" \
    "https://xxxx.okta.com/api/v1/groups?q=xxxx"
    From Zabbix, this doesn't work:
    Click image for larger version

Name:	Screenshot from 2020-06-19 21-56-24.png
Views:	638
Size:	89.1 KB
ID:	403732

    Click image for larger version

Name:	Screenshot from 2020-06-19 21-57-10-scrub.png
Views:	625
Size:	34.4 KB
ID:	403733

    Comment

    • sreed7164
      Junior Member
      • Jul 2015
      • 3

      #3
      There's a bug report here


      With a patch available and notes about it being fixed in the next release.
      Last edited by sreed7164; 21-06-2020, 16:38.

      Comment

      Working...