For checking the hardware and or some software components use self_test
Self test is a interface provided by some nodes see: http://wiki.ros.org/self_test. The node performs a self check to rule out some faults. This could be of interest for a repair approach.