Wednesday, February 16, 2011

Check your linux system for errors!

This is a little perl script that I wrote to check log files for hardware and other errors.

To download the latest version:

svn co http://mephistobackup.googlecode.com/svn/branches/error-checker

To Run:

cd error-checker
perl error.pl <--Running with no arguments will scan /var/log/messages, /var/log/mcelog, /var/log/dmesg
perl error.pl ~/messages <--will scan a file called messages in your home directory for errors.


To update to the latest version:

cd error-checker
svn update

If you like to scan files for more terms, modify the following part of the code:


#Array for the default items to search the files for
@search = ('ecc','mce','error'); <--add search terms there!

No comments:

Post a Comment