X-rays from cusps of compact remnants near galactic centres