Using CheckMK rest-api extract metrics

Hi Andreas,

I tried the WEB-API version here check below

[guhitj@cdragon] curl -k "https://um-omd.aglt2.org/atlas/check_mk/webapi.py?action=get_graph&_username=<user>&_secret=<automationsecret>&request_format=python&output_format=python" -d 'request={"specification":["template",{"service_description":"Memory /","site":"atlas","graph_index":0,"host_name":"umfs06"}],"data_range":{"time_range":[1648711842, 1648715442]}}'

And this is what I get.

{'result_code': 1, 'result': 'Checkmk exception: Cannot calculate graph recipes: No matching entries found for query: GET services\nColumns: perf_data metrics check_command\nFilter: host_name = umfs06\nFilter: service_description = Memory /\n'}

Any advice on how to fix this? I could get this working with LiveStatus and I am trying to do the same for the WEB-API version.

Best,
Jem