Any computer application that checks the computer and/or any attached peripheral devices for errors or malfunctions, such as disk errors, among many other things. It is generally a good idea to run a disgnostic program every once in a while. Most computers thmselves perform a set of diagnostic routines at start-up (called power-on self tests). When an error is detected, the user is presented with an error message.