Using CheckMK rest-api extract metrics

Hi Andreas,

The live status works for me:

OMD[atlas]:~$ lq "GET services
Filter: host_name = umfs06
Filter: service_description = CPU load 
Columns: rrddata:m1:load1.max,1,*:1648711842:1648715442:1
OutputFormat: json"
[[[1648711800,1648715460,60,46.572,44.7538,17.1832,6.96517,2.992,1.254,0.985667,39.596,40.1385,15.4943,6.64633,3.43367,2.276,1.71017,1.67567,1.664,1.72817,1.908,2.025,1.80133,1.57033,1.78967,1.674,1.22867,1.08533,1.366,1.37433,1.44833,1.56,1.62933,1.63533,1.48433,1.48633,1.429,1.619,1.38533,1.2325,2.33833,2.33133,1.70933,1.67483,1.592,1.352,2.4995,5.57633,115.463,261.571,363.886,322.207,167.702,65.1247,27.3383,133.288,251.52,225.567,143.077,93.307,35.2182,15.731,7.755,4.608]]]

As you could see here. But I’m hoping to script this as part of a network benchmark program I am working on. I usually use the request/curl module, so I was hoping to do the same for this. Do you think I should just go this route instead of trying the WEB-API syntax?