For Linux

Check the /var/log/messages file on a regular basis. See the operating system documentation.