Xymon Mailing List Archive search

Log File Monitoring Problem

2 messages in this thread

list James Wade · Tue, 28 Nov 2006 13:41:18 -0600 ·
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

 
Thanks.James
list Buchan Milne · Wed, 29 Nov 2006 12:03:00 +0200 ·
quoted from James Wade
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)