Yes, I always specify host names in analysis.cfg and alerts.cfg with a
leading caret and trailing $. It prevents a lot of unintentional matches,
since Xymon seems to put .* before and after the names before trying to
match them.
Thanks,
Larry Barber
On Fri, Nov 9, 2012 at 11:16 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid> wrote:
Adam is correct. I was not putting much thought into the range, more
just that a caret and unescaped leading slash was required for Mike's
issue. Also, I would not use .*, based on a practice of only matching what
you need, when you know what it is. In this case it was known to be
01->27, and I borked that simple match :)
Besides placing these above the DEFAULT stanaza I see alot of mishaps
when using the regex identifier % without the start of the line caret ^.
%^/
*From:* xymon-bounces at xymon.com [xymon-bounces at xymon.com] on behalf of
Adam Goryachev [user-92fd6827f6ae@xymon.invalid]
*Sent:* Thursday, November 08, 2012 3:32 PM
*To:* xymon at xymon.com
*Subject:* Re: [Xymon] Using "IGNORE" to exclude filesystems
I don't think that would work, you would need something like:
HOST=edmprod
DISK %^/(da[0-1][0-9]|da2[0-7]) IGNORE
DISK * 95 98
Regards,
Adam
--
Adam Goryachev
Website Managerswww.websitemanagers.com.au