Monitoring Corrupt Database

Hi:

if a database is damaged, how I can monitor the server to repair it?

Is there any server settings for this? Or should I create an application?

For your help and attention

Thank you

Daniel