Xymon Mailing List Archive search

Alerting and regular expression

list Charles Jones
Fri, 06 Jan 2006 09:09:04 -0700
Message-Id: <user-4ef2492b6c07@xymon.invalid>

James B Horwath wrote:
I am converting from BB to Hobbit, Hobbit is a really nice piece of code.

I am in the process of converting my rule set from BB to Hobbit and 
have a couple of questions.

I have found if I try to define this:

$FOO_HOST=%*myhost

I receive an error message because I start with a '*'.  I haven't 
found the magic to escape this.  As a work-around I did this:
$FOO_HOST=%[a-zA-Z0-9]*myhost
I think you have to either use wildcards, or regex. In other words:

$FOO_HOST=*myhost

or

$FOO_HOST=%(.+)myhost


-Charles