[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] Alerting and regular expression



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