/usr/share/doc/check-mk-doc/treasures/check_livestatus is in check-mk-doc 1.2.2p3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | #!/bin/sh
HOST=$1
SVC=$2
cat <<EOF | unixcat tmp/run/live | { IFS='|' read state output perfdata ; echo "$output|$perfdata" ; exit $state ; }
GET services
Filter: host_name = $HOST
Filter: description = $SVC
Columns: state plugin_output perf_data
Separators: 10 124 124 124
EOF
|