Xymon Mailing List Archive search

IGNORE ignored

list Jeremy Laidman
Tue, 4 Jun 2013 15:38:23 +1000
Message-Id: <user-8cd2dbeb425a@xymon.invalid>

On 4 June 2013 09:35, Phil Crooker <user-e8e31cd73303@xymon.invalid> wrote:
I've found the quotes to be problematic. Try escaping each space, or
truncating the string:
I've not used escaping of spaces in this way.  But I have used quotes that
include the IGNORE= part like so:

LOG=/var/adm/messages "IGNORE=terminal-device not specifiedby login"
LOG=/var/adm/messages IGNORE=terminal-device.*login
This won't work because you are using a regular expression match format
".*" but not specifying that it's a regular expression with a leading
percent.  This might be what you mean:

LOG=/var/adm/messages IGNORE=%terminal-device.*login

Or, you can replace spaces with the regex whitespace, like so:

LOG=/var/adm/messages IGNORE=%terminal-device\snot\sspecifiedby\slogin

IMHO, the neatest is to enclose the whole "IGNORE=matchstring" in quotes.

J