Xymon Mailing List Archive search

Possible regex issue xymon 4.3.11

3 messages in this thread

list Michael Resnick · Tue, 30 Sep 2014 17:20:31 +0000 (UTC) ·
I have the following in alerts.cfg
HOST=%sciv2-ws* 

The problem is that it is picking up a host called

sciv2-wdl2-hqd01
Is it me or the regex ?Has this been fixed  in newer versions ?
Thanks !
list Steve Coile · Tue, 30 Sep 2014 13:58:05 -0400 ·
It's you.  The "s*" in your regular expression matches zero or more "s" at
that location.  The hostname you give contains zero "s" at that point,
which matches the expression.


-- 

*Steve Coile*Senior Network and Systems Engineer, McClatchy Interactive
<http://www.mcclatchyinteractive.com/>;
Office: XXX-XXX-XXXX | Mobile: XXX-XXX-XXXX | Fax: XXX-XXX-XXXX

On Tue, Sep 30, 2014 at 1:27 PM, Michael Resnick via Xymon <xymon at xymon.com>
wrote:
---------- Forwarded message ----------
From: Michael Resnick <user-7fba2d5d51fe@xymon.invalid>
To: "xymon at xymon.com" <xymon at xymon.com>
Cc:
Date: Tue, 30 Sep 2014 17:20:31 +0000 (UTC)
Subject: Possible regex issue xymon 4.3.11
quoted from Michael Resnick
I have the following in alerts.cfg

HOST=%sciv2-ws*

The problem is that it is picking up a host called


sciv2-wdl2-hqd01

Is it me or the regex ?
Has this been fixed  in newer versions ?

Thanks !

list Glauber Ribeiro · Tue, 30 Sep 2014 21:06:12 +0000 ·
Michael,

Perhaps you are thinking “glob” patterns, like the ones used with directory listings. Regular expressions are different. “*” doesn’t mean any sequence of characters, but zero or more of the preceding character. Google “regular expressions”. Xymon uses perl-style regular expressions.
quoted from Steve Coile


From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Steve Coile
Sent: Tuesday, September 30, 2014 12:58
To: Michael Resnick
Cc: xymon at xymon.com
Subject: Re: [Xymon] Possible regex issue xymon 4.3.11

It's you.  The "s*" in your regular expression matches zero or more "s" at that location.  The hostname you give contains zero "s" at that point, which matches the expression.


--

Steve Coile
Senior Network and Systems Engineer, McClatchy Interactive<http://www.mcclatchyinteractive.com/>;
quoted from Steve Coile
Office: XXX-XXX-XXXX | Mobile: XXX-XXX-XXXX | Fax: XXX-XXX-XXXX

On Tue, Sep 30, 2014 at 1:27 PM, Michael Resnick via Xymon <xymon at xymon.com<mailto:xymon at xymon.com>> wrote:


---------- Forwarded message ----------
From: Michael Resnick <user-7fba2d5d51fe@xymon.invalid<mailto:user-7fba2d5d51fe@xymon.invalid>>
To: "xymon at xymon.com<mailto:xymon at xymon.com>" <xymon at xymon.com<mailto:xymon at xymon.com>>
Cc:
Date: Tue, 30 Sep 2014 17:20:31 +0000 (UTC)
Subject: Possible regex issue xymon 4.3.11
I have the following in alerts.cfg

HOST=%sciv2-ws*

The problem is that it is picking up a host called


sciv2-wdl2-hqd01

Is it me or the regex ?
Has this been fixed  in newer versions ?

Thanks !