Xymon Mailing List Archive search

analysis.cfg - match a sentence not a single word

3 messages in this thread

list Ian Diddams · Thu, 16 Aug 2018 15:53:20 +0000 (UTC) ·
 Follwoing on from my rpevious queries and thanks to all that helped,
Ive now got everything working but matching a single word ("DIDDS").

however - what I actually need to match is a sentence

eg "Failed to initialize credentials using keyta"

I can try this 
LOG %/var/log/messages.*.log "Failed to initialize credentials using keytab"  COLOR=yellow


but the GUI flags the contents of the file as containing that but it doesn;t alert for it.

all the man page suggests is single word pattern matching is available - any other suggestions?


cheers
list Mike Burger · Thu, 16 Aug 2018 12:11:10 -0400 ·
In my implementation, we've got % at the front of our text regex: 
LOG %/var/log/messages.*.log "%Failed to initialize credentials using
keytab"  COLOR=yellow 
You might give that a try. On 2018-08-16 11:53, Ian Diddams via Xymon wrote: 
-- 
Mike Burger
http://www.bubbanfriends.org

"It's always suicide-mission this, save-the-planet that. No one ever
just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1
list Ian Diddams · Thu, 16 Aug 2018 17:14:25 +0000 (UTC) ·
 that's another badger!!!

Cheers Mike - again!
that just leaves the "alerts disappear after ten minutes even though the string is still in the log" issue...
cheers!
DIDDS
▸ quoted from Mike Burger
    On Thursday, 16 August 2018, 17:11:12 BST, Mike Burger <user-cc5c6e80f4c5@xymon.invalid> wrote:  
 
 In my implementation, we've got % at the front of our text regex: LOG %/var/log/messages.*.log "%Failed to initialize credentials using keytab"  COLOR=yellow You might give that a try.
 On 2018-08-16 11:53, Ian Diddams via Xymon wrote:


 -- 
 Mike Burger
 http://www.bubbanfriends.org
 
 "It's always suicide-mission this, save-the-planet that. No one ever just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1