[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Log File Monitoring Problem
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Log File Monitoring Problem
- From: Buchan Milne <bgmilne (at) staff.telkomsa.net>
- Date: Wed, 29 Nov 2006 12:03:00 +0200
- Cc: "James Wade" <jkwade (at) futurefrontiers.com>
- Organization: Telkom Internet
- References: <0fb401c71325$36c69490$6b2fb8a5@txaccess.net>
- User-agent: KMail/1.9.4
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)