[checkmk-commits] Cleaned up keepalive mode handling code a bit