[checkmk-commits] Extracted small Livestatus function for general purpose