[checkmk-commits] adapted scan function