Xymon Mailing List Archive search

PROCS not monitored correctly -what is wrong with this picture?? (Find the error!) (LONG)

list Larry Barber
Tue, 9 Apr 2013 13:34:00 -0500
Message-Id: <user-7d49194e1198@xymon.invalid>

Yes all of your "or" expressions should be in parenthesis, not brackets,
what you're saying with the brackets is "match any character contained
within the brackets", so the '|' isn't being interpreted as an "or" but
just as a pipe character to match. So the regular expression ^db[11|12|12
...] is saying "match any phrase that starts with db and has 1 or 1 or | or
1 or 2 ... as a second character, so db1.bo3.example.com certainly matches.

Thanks,
Larry Barber


On Tue, Apr 9, 2013 at 1:28 PM, Betsy Schwartz <user-c61747246f66@xymon.invalid>wrote:
heh and as soon as I sent that whole LONG thing, someone on my team points
out a clue which leads to
HOST=%^db[11|12|13|21|22|23|31|32|33|61|62].bo3.*

which is of course not a well-formed regexp. I dont' see why it would
match db1.bo3.example.com, but it's certainly mucked up.