CMK version: 2.0.0p31
OS version: Docker / Oracle Linux
Error message: Object of type bytes is not JSON serializable
Hello,
I would like to query data from the livestatus API (/domain-types/host/collections/all)
The field I am interested in is the HW/SW Information, which is contained in “mk_inventory”
Querying the field via lq on the slave/master itself does not produce any error.
Using the REST API, I get the following error message:
‘method’: ‘get’,
‘rel’: ‘cmk/crash-report’,
‘type’: ‘text/html’},
‘detail’: ‘Object of type bytes is not JSON serializable’,
‘status’: 500,
‘title’: ‘Internal Server Error’}
Using other Fields which are stored formats like int/String are working fine.
Queryring the API via octet-stream is not supported.
Is there any way to gather the data via REST or any other way to query the HW/SW Invetory via REST?