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 ?
Can you provide your telegraf configuration so we can see what it’s trying to do?
This is my config file.
address = “https://serveraddress”
username = “admin”
password = “pass”
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
Content-type: application/json; charset=utf-8
Date: Sun, 13 Sep 2020 05:33:55 GMT
Link: </redfish/v1/SchemaStore/en/ComputerSystem.json/>; rel=describedby
X-XSS-Protection: 1; mode=block
Hi, i already did and i think you already did :)) i’ve opened the topic here just a big before github.