I’m writing an lql api Server/Client for Check_MK its available on Github. I do that because I haven’t found a proper solution to get all data from /mysite/check_mk/views.py.
lql-api supports connection’s to the socket over ssh and locally, for both versions there is a client (a simple replacement for lql and lql over ssh with some parsing).
It’s written in Go (also named golang) and the server supports OpenAPI 3.0.
Both the “localserver” and the “sshserver” expose the same endpoints,
you can view them when you run “sshserver” and point an OpenAPI browser for example the swagger petstore to http://localhost:8080/openapi.json
A yes both support Basic auth with a .htpasswd, where the sshserver automatically picks the one from wato.
I realy want lql-api to be part of omd, this would require the omd apache to be recompiled with mod_proxy_http.
Please let me know, if you find bugs/have improvements.
René from Austria
P.s.: once I discovered the forum I found out that the CheckMK Team works on an API, I’ll still work on this as the official API is far from being complete yet.