Hello,
I am working on a plugin and have stumbled across a reference to the Livestatus Python API in the documentation (Statusdaten abrufen via Livestatus), but can no longer find this directory. Does it still exist?
Kind Regards,
Andreas
Hello,
I am working on a plugin and have stumbled across a reference to the Livestatus Python API in the documentation (Statusdaten abrufen via Livestatus), but can no longer find this directory. Does it still exist?
Kind Regards,
Andreas
Hi Andreas,
it still exists.
if you are the site user, ‘lq’ will still be in your path.
The example commandfile path though hasn’t existed in checkmk since … forever? @mschlenker would it make sense to use the default commandfile path within OMD here? i.e. => /omd/sites/<sitename>/tmp/run/nagios.cmd
Hijacking this thread to promote GitHub - jochumdev/lql-api: LQL API Server for check_mk ![]()
You might have fun with it.
The “sshclient” variant needs no serverside lql-api as far i remember.
Hi Gerd,
the “lq” command is there, but the documentation says, there should be a “Python API” also
Hmm???
$ omd su jochum
$ echo -e "GET hosts\nColumns: name address groups\nLimit: 1" | lq
unifi.fk.example.com;10.167.160.13;check_mk
Ups forget that, you look for Python bindings/scripts which are gone not for the lq command.
Those are also not on checkmk/doc/livestatus at master · Checkmk/checkmk · GitHub i checked various versions.
Hm interesting, it’s still in checkmk/livestatus/api/python at release/2.2.0p35 · Checkmk/checkmk · GitHub maybe that also still works?
otherwise Retrieving status data via Livestatus should still work (i.e. calling lq from python and parsing the output)