On Tuesday 28 November 2006 21:41, James Wade wrote:
I'm monitoring a logfile for "Incompatible Types" error.
However, recently, one of the log files came up with the error,
and Hobbit didn't detect it. Here's what I'm looking for:
(Note: Code can be different)
CWWBE0085E: Incompatible types
This is what my log description looks like:
LOG /opt/log/SystemOut.log %J2CA0056I|J2CA0020E|Incompatible Types|Assertion COLOR=RED
Does it have to be lower case? Incompatible types
According to the man page, the LOG patterns are case-insensitive by default.
However, your problem is most likely the fact that you have a space in your regex. You probably need to quote it, something like this may work:
LOG /opt/log/SystemOut.log "%J2CA0056I|J2CA0020E|Incompatible Types|Assertion" COLOR=RED
While this isn't covered in the section on logs, it is covered in other sections of hobbit-clients.cfg (eg PROC).
Regards, Buchan
-- Buchan Milne ISP Systems Specialist - Monitoring/Authentication Team Leader B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)