JSON or CSV parsers are usually faster

Call up status data via Livestatus

tmp / run / live

The Unix socket for transferring queries and commands.

bin / lq

Script command for easier transfer of queries and commands to the Unix socket of the Livestatus.

var / log / cmc.log

The log file of the CMC, in which, among other things, the queries / commands are documented.

var / check_mk / core / history

The log file of the CMC in which all changes that occur during the runtime of the core are entered, such as status changes of a host / service.

var / check_mk / core / archive /

The log files are archived here. These are only read in as required.

var / log / nagios.log

The log file of the Nagios core, in which, among other things, the queries / commands are documented.

var / nagios / archive /

The log files are archived here. These are only read in as required.

share / doc / check_mk / livestatus / LQL-examples /

In this directory you will find some examples of Livestatus queries that you can try out. The examples are directed to the script command, such as:

share / doc / check_mk / livestatus / api / python

This directory contains the Python API and some examples. Also read that in this directory.

share / doc / check_mk / livestatus / api / perl

The Perl API can be found here. Again there is a. The examples for usage can be found here in the subdirectory.

share / doc / check_mk / livestatus / api / c ++

You will also find sample code for the C ++ programming language here. The code for the API itself is also uncompiled, so that you have maximum insight into how the API works.