"parse dmesg" does not work for monitoring your system for failures;
dmesg buffer can overflow.
If something fails, you should get errno returned for userspace, and
that's where you should be doing the monitoring.
So... what parts don't return enough information to userspace so that
you need to parse dmesg? Lets fix them.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--