Xymon Mailing List Archive search

how to search for exact word patterns

list Greg Hubbard
Fri, 18 Sep 2009 12:25:21 -0500
Message-Id: <user-bceb6c674893@xymon.invalid>

Try making it a regex (with % prefix) instead of "simple" expression.

On 9/18/09, Camelia Anghel <user-56034f999072@xymon.invalid> wrote:
 Did that but it look for all messages that have one of the 3 words

Thanks anyway

Camelia


-----Original Message-----
*From:* Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid]
*Sent:* Friday, September 18, 2009 11:22 AM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] how to search for exact word patterns


I think it's:

HOST=my.host.com
    LOG /var/log/messages "out of memory" COLOR=red

Not tested.

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

"When you have eliminated the impossible, that which remains, however
improbable, must be the truth."
--- Sir Arthur Conan Doyle

 On Fri, Sep 18, 2009 at 9:26 AM, Camelia Anghel <user-56034f999072@xymon.invalid> wrote:


Hello all,
I am trying to set up an alert to search for exact word patterns in
/var/log/messages.  For example: "Out of Memory"

Any help would be appreciated.

Thanks,
Camelia

-- 
Disclaimer:  1) all opinions are my own, 2) I may be completely wrong, 3) my
advice is worth at least as much as what you are paying for it, or your
money cheerfully refunded.