Redfish error parsing input: invalid character '<'

Hi guys.
Ive configured telegraf redfish to scrape data from HPE iLO.
probably misunderstanding how to use
computer_system_id. i set computer_system_id = “1”
but getting error [inputs.redfish] Error in plugin: error parsing input: invalid character ‘<’ looking for beginning of value that look like something json.Unmarshaler would throw out.
i can access /redfish/v1/systems/1 in api via curl and get valid json in return.
what am i missing ?
Thank you.

Can you provide your telegraf configuration so we can see what it’s trying to do?

Thank you.
This is my config file.
[[inputs.redfish]]
address = “https://serveraddress
username = “admin”
password = “pass”
computer_system_id=“1”
insecure_skip_verify = true

And i can get results with:
curl https://serveraddress/redfish/v1/systems/1 -i --insecure -u admin:“pass” -L

It looks like the inputs.redfish plugin is getting HTML rather than JSON returned to it.

Looking at the plugin code, it looks like it will call https://serveraddress/redfish/v1/Systems/1 (note that the S in Systems is capitalized). If you call curl with that URL (including capitalization) do you still get JSON?

seems that way.

HTTP/1.1 200 OK
Allow: GET, HEAD, POST, PATCH
Cache-Control: no-cache
Content-length: 5180
Content-type: application/json; charset=utf-8
Date: Sun, 13 Sep 2020 05:33:55 GMT
ETag: W/“B74B04D8”
Link: </redfish/v1/SchemaStore/en/ComputerSystem.json/>; rel=describedby
X-Content-Type-Options: nosniff
X-Frame-Options: sameorigin
X-XSS-Protection: 1; mode=block
X_HP-CHRP-Service-Version: 1.0.3

{"@odata.context":"/redfish/v1/$metadata#Systems/Members/$entity"

Hey @naorw, I don’t think this is your fault. Can you open a bug with the context you provided here? Then I can ping the author to take a look at it.

Thanks!

Hi, i already did and i think you already did :)) i’ve opened the topic here just a big before github.


Thank you :slight_smile: